Greetings,
In my game, I have an enemy. When the enemy dies, I want it to leap in the air a bit, and then fall offscreen. Here is the setup I used for this (Bottom code, above the pink group):
Now, there is one problem with this code as it is currently. When I kill the first enemy, it does exactly the thing I want it to. However, when the dead enemy is still onscreen, the second enemy I kill doesn’t leap, but rather just falls. The enemies only do a small hop upon death if there are no other dead enemies on screen.
Removing Trigger Once is a bad idea. If Trigger Once is removed, the enemies quickly fly up to space when they die since the force is constantly active.
How do I make sure that each enemy’s death animation works the same way? You know, like how to I make the downwards force (The force that makes them fall) constant, while making sure the force that makes them leap stays active just once for each enemy?
Thanks ^^