What would cause a 2D flipbook not to play through its frames While connected to a blueprint?

Hi Genesislozenge,

I had a look at this issue today and it is happening due to how your BP is set up. You explicitly set flipbook when On Jumped is called, but it also gets set every frame by call to UpdateAnimation from input axis event, and via tick (when jumping) event. These two things are fighting with each other.

Setting a flipbook component to a flipbook it is already playing leaves play position alone, but setting it to a different flipbook starts timer over at 0, so what you are seeing is this:

  • Jump on frame 0: Set to Jumping, resets time to 0
  • Input event on frame 1: Set to Idle or Running, resets time to 0
  • Tick on frame 1: Set back to Jumping, resets time to 0

So time never accumulates while jumping.

Instead, you should create a Boolean variable named IsJumping, and set that true when OnJumped happens and false when OnLanded happens, then use that with a second Select node to pick Jumping animation, instead of output of first select node.

Cheers,
Noland

3 Likes