animate only when actor is moving?

GamePizzaGamePizza Member, PRO Posts: 227
edited November -1 in Working with GS (Mac)
how can I animate an actor only when it is moving?

when it is not moving, stopped, I want the default image to be displayed

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    depending on how you are doing the move you can trigger the animation based on the move button being pressed or you can just have something like when self.motion.linearvelocity.x is Greater than 0 Animate

    And to get it to return to the original image you just need to check restore image in the animate behavior.
  • UtopianGamesUtopianGames Member Posts: 5,692
    If motion.linear.velocity.X # 0 (anything other than 0) same for motion Y then animate...that might work.

    Darren.

    image
Sign In or Register to comment.