Forum rules - please read before posting.

Cheating a stairs animation

Hello guys,
Our game is 2D and only moves left to right. There is no "Up and Down". We have a little stair we need to climb and not so sure how to "cheat" the "Walk to marker" but instead of walking or running, doing something else (in this case, a particular animation). As for the speed, I handled it through the vertical option in the Settings. That made the animation run faster.
The only thing is how to cheat that so it moves but not walking or running (it needs to go to a marker).

Thanks!

Comments

  • If your character relies on Sprites Unity Complex, you can add a Bool parameter to your Animator that causes a separate set of walking animations (i.e. stair-climbing) to play when True.

    The Character: Animate Action can then be used to set this parameter's value before and after the climbing.

    Alternatively, you might look into Timeline to handle the animation and motion as a pre-built sequence - but this'd only be in the case that the climbing is a cutscene where the player isn't directly-controlling them. In Timeline, you can move a character's root object and animate their sprite(s) in separate tracks.

  • Thanks a lot! It was super simple and it worked! The hard part is to merge a good stairs animation into the stairs. Art department hahahaha. Thanks!!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.