Hello!
I am making a 2D side scroller for my first game. I am having issues with my character’s death flipbook animation. I have tried a few different methods but no luck getting it to work with my current set up. What needs to change?
As you can see below i have the animations update custom event initiate off the event tick like the starter content has (I have just built off that blueprint to call Water and Food reduction functions, and changed the get velocity input to X axis only so I could get Z axis specifically for the falling flipbook) everything seems to work fine EXCEPT, my death_animation flipbook freezes (or loops) the first frame and stays like so until the character actor is destroyed after the delay. when i disable the delay to destroy actor nodes my character stays in the first frame of the death animation and I can run around like this haha
i feel like it is something simple but I just cant get it. Can someone help me get this current setup to play the death flipbook?
Things I’ve tried;
- making custom events for idle/running, falling, and death so i could remove the “update animation” off the event tick.
What that did: played the death animation flawlessly when it was supposed to, delayed, and destroyed actor after the flipbook plays through. BUT now Running/Idle/Falling animations don’t play.
-reset blueprints-
- made a function called Death that checks my health variable is <=0.0, on true it initiates Death animation. I then added a node off the event tick BEFORE the update animation to run the Death function.
what that did: Flickered between first frame of the death and Idle animations. If i moved the Death function from the event tick to updateanimations custom event (initiated by event tick) the Death function freezes on first frame, or possibly looping first frame. (animation in the editor looks good, and i get a full preview in the setflipbook downdrop)
My thoughts, event tick being tied to update animations is keeping the death animation from being able to continue past first frame?
water and food depletion is unaffected, health depletion works good. picking up gold nuggets is fine, collect health from first aid kits, i’ve implemented swamp water to quench thirst but drain food and health but fresh water doesn’t hurt you. different items give different stats. I’ve got floating platforms, elevators that start on a lever… Feeling good about my progress in the last couple weeks.
I just can’t get this figured out.
Any help is appreciated!
Reference to Original problem, I have not posted the screenshots of my attempted fixes.
Event Tick
Update Animations