Animate vs Legacy in On Game Update

I have another odd issue in my game and am wondering if anyone else can explain what is going on.

I am trying to animate my character when they are moving left or right and have found that the ‘animate’ blocks do not work the same as the ‘legacy’ blocks when they are placed within ‘on game update’.

I made a simple test to demonstrate:

The ‘legacy’ blocks work, but the ‘animate’ blocks only start the animation after the character stops moving.

Any ideas? I can easily use the ‘legacy’ blocks, but it want to make sure I’m not overlooking some basic explanation.

@richard this might be another one right up your alley since you were so quick to answer my last question.

1 Like

The animations in the new APIs reset when called multiple times. Instead of calling it every frame, you should only call it once when you start moving left or right:

Alternatively, I made an extension to make this sort of thing much easier. If you add this extension to your project:


You get blocks that capture this behavior along with a few other common scenarios:

It’s on my to-do list to get this in the default extension list.


Nice extension! Using that now and thanks again for the explanation.

Thank you so much for this! it is exactly what I need!

1 Like