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?
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?
At a quick glance, I’m not sure where you’re getting or setting the “.Skipped” parameter and how that factors into the precollision filter. I’d do the precollision filter and check which platform the parachuter is colliding with using the “.myName” parameter.
At a quick glance, I’m not sure where you’re getting or setting the “.Skipped” parameter and how that factors into the precollision filter. I’d do the precollision filter and check which platform the parachuter is colliding with using the “.myName” parameter.