|
-
Need a helping hand
right where do i start umm..
got a little game i made but need a hand with a script
i have codes for all 10 levels in "select a level menu" and want to have incomplete levels locked when selecting a level
(AS) frame 1
level_2_complete = false;
(AS) level 1 complete
if (_root.finish.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_y -= power;
_root.gotoAndStop("level select");
level_02_complete = true;
}
(AS) level select script
if (level_02_complete=true and _root.level2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_y -= power;
_root.gotoAndStop("level2");
} else {
_root.lvl_stats.gotoAndPlay("locked");
}
the hit test is detected but it wont detect the true or false
anyone help?
all but frame 1 codes are within "onClipEvent"
Last edited by hopies; 11-28-2010 at 12:00 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|