


If (animator.GetCurrentAnimatorStateInfo(0).IsName("roll"))Īnimator.SetInteger ("state", STATE_Run) Īnimator.SetInteger ("state", STATE_Roll) Īnimator.SetInteger ("state", STATE_Jump) Īnimator. Didn't know you could do that kind of thing with GM2, is that an add on or something TheSnidr 6 yr.

You can use booleans to keep track of the state of your character, and make sure not to trigger animation changes too often that way. How to animate a 3D model in GMS 2 : r/gamemaker Here's a video showing how to animate your 3D models in Gamemaker Studio 37 3 comments Best Add a Comment VampSquirrel 6 yr. Customize your scenes Customize the scenes of your 2D animated video with 2d backgrounds, characters, properties, animated texts or upload your own assets. 1 Answer Sorted by: 1 Sounds like you need to set the sprite based on a one-time trigger, like a button press or a similar state change. Transform.Translate(new Vector3(1f, -.4f, 0f) * rollSpeed * ltaTime) Start with a Template Pick a pre-designed 2D Animated video template you like or start from scratch. So when I press down or, hold down in this case, the animation has to complete one cycle, and then I have to press or hold the down key again for it to start up again. Basically I want the roll animation to play completely, and not be interrupted like a fighting game special move.
