Hi all. I have been using Nathans tutorial here on Kirupa to build my platform game. One question I had is that I have a button that allows you to restart the game. It works and all, but it doesn’t reset the character back to its original location. For example if he falls off a cliff and you restart the game by clicking on the restart button, you keep falling off the cliff because it doesn’t reset the character back to the beginning. And one other thing was if the character is dead and you restart the game by clicking on the restart button, he is still in the dead state and you can’t do anything. Any pointers would be greatly appreciated. If anyone wants me to post the .fla file or .swf file I am more than happy to post it.
One other question I have is about the scrolling. How do I restrict the characters movement so he doesnt go beyond the x = 0 and y = 0 point? For example i have a stage width of 550 Its okay if he goes beyond the 550 for scrolling to the next part, level, etc… but not in the -1 of the stage. Let me know if its confusing, and any tips to help me there would be awesome! Thanks to all.