Stop A Scene?

Games4lifeGames4life 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

  • Thunder_ChildThunder_Child Member Posts: 2,343

    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 ?

  • Games4lifeGames4life Member, PRO Posts: 279
    edited November 2015

    @Thunder_Child said:
    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 ?

    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)

  • Thunder_ChildThunder_Child Member Posts: 2,343

    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.

  • Games4lifeGames4life Member, PRO Posts: 279

    @Games4life said:
    Yeah, I just tried that. Unfortunately that did not work as the poles would still keep moving.

    @Thunder_Child said:
    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.

    Ah, got it. Thanks for your help.

Sign In or Register to comment.