Hi!
I have an enemy sprite object (parachuter) that has several sequences. It is created in the “air” with physics body and start sequence “paraglide” and then “glides” down to a platform (platform1) where it changes sequence to “paraLand” and then start “landing” and finally lands on a second platform (platform2).
Now to my problem. If a hero shoots at the parachuter and hits with a bullet the parachuter changes sequence to “paraDead”. The dead parachuter should now ignore platform1 and then land on platform2. How do I do this?
This is my code:
I don’t want to remove the body and then add it again, because then the object will lose its velocity. I guess I need to use event listeners with precollision, but how should I do it?
Best regards,
joelwe