Stop A Scene?
Games4life
Member, PRO Posts: 279
I am creating an endless runner game. I need help with how stop the scene when the actor dies. For example, in Flappy bird, when the bird collides with the pole, the poles stop moving forward and the falling bird animation occurs. I want this same effect to happen that when my character collides with a pole, i need them to stop moving and an animation to play. Any suggestions?
Comments
I personally would make a boolean of game over....when game over is false...make so you poles move....if collide then game over is true and poles will stop if you change their move speed then to 0.
Maybe ?
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
Yes that works! However, now it makes my bird flash weirdly like it is EXTREMELY laggy and still moves to the slightest. (like a weird graphic which is the only flaw)
Uh...that doesnt sound like a problem that should have been created by a boolean function. Are you providing a means of making gameover back to false at the beginning of the next game? Sometimes I will create a temporary text display in my scene that shows the status of a boolean function to see what state it is in and changing states as it should. Just a method to help trouble shoot. Once done simply delete that temp display.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
Ah, got it. Thanks for your help.