-
When score = 100 continue??
I have a snake game,
all i need is to make the link at the end....
i want the game to link to a new scene if the player dies with
a score greater than 100...
so far i have if (tscore > 100){
gotoAndPlay("Scene Name",1)
}
-
don't use scenes, they're a pain in the neck.
as far as i know, you can only jump to scenes from the main timeline. so i'd suggest you put a function on the main timeline such as this:
function gotoScene(sname, sframe){
gotoAndPlay(sname, sframe);
}
and then call that function in your code posted above:
if (tscore > 100){
_root.gotoScene("Scene Name",1)
}
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
|