PDA

View Full Version : Few things more to: Creating a Platform Game Tutorial



Cat.Master
January 23rd, 2009, 06:12 PM
I have seen great tutorial of Creating a Platform Game. But, when hit to enemy or die, how to get it only reset at the start?
And how to make 'goal' to get to the new frame/level?
Please answer to these questions and help me.

I have just started game creating so help and sorry for stupid questions :D

Jephz
January 26th, 2009, 05:34 PM
Just take all the variables in the game and reset them to the number you want.

For the goal part, just put the following code on the door/winning object symbol:



if(_root.player.hitTest(this)) {
_root.gotoAndStop("next level frame")
}


Of course, even though this is the simplest way to do it, I wouldn't recommend it because your code will be a mess.