I need help ASAP thanks for anyone who can -
08-31-2011, 04:56 PM
I have added a recursion to replay the story scenario when asking the user if they would like to replay the story. Once you select yes the story replays but you can't see the characters correctly like you do when the program first start. Can someone give me some advice to what I am doing wrong because I have tried all I know and it is not working thanks. I have attached a copy of the file.
This is because you don't reset everything you just replay the method. If the user enters yes then you should call a method the resets everthing back to its original location at the start of the program.
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
No, he means you need to make everything that has moved from its original position at the start of the world move back to that original position to replay properly. I suggest just telling the user to click the button at the top of the window, as it resets the world for you.
When I need to reset a video, all I do it create a new method, put a "do together" in the method, and then put a piece of code for each object that returns it to the initial position. I then go through the list, and change the duration to "0 Seconds."