|
-
Reset Stage (CS4)
Normally I'd try to find my problem as I'm sure it's been solved before, but I don't know what to search for in this case.
I'm finishing my first big game and when you get a game over, i use a simple gotoAndStop() function to return to the first frame. It sends the user back to the first frame, but all the 546543218 textures that were called using attachMovie(), and other things I changed don't change back. Is there a way to return everything to the status it was when the game loaded?
Maybe some function that reloads the game completely? That would work for me.
Thanks in advance.
-
Fuuuuuuuuuu I really need to figure this out. Could anyone even point me to a forum where I can find this info?
-
Easiest way: refresh the page it's embeded in.
No so easy way: declare all variables to null. Where you had attachMovie use removeMovieClip (using the same for loops)
It's always best practice to start declaring variables in 1st frame. Here's one reason why.
gparis
-
Is there really no other way? I've got stuff that I'm calling with instance names like "explosion" + _root.getNextHighestDepth(), and an infinite amount can go up, so I'd need hundreds or thousands of statements to get rid of this stuff.
Is there a way to cause a refresh of just the game but not the page using actionscript?
EDIT: Sorry if I sound ungrateful, thanks for the answer, whether it's good or bad news. >.<
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
|