Iâ€™m on a platformer project actually and I encountering some several issues with animations and collision box.
As you can see in the capx file , I create 2 different kind of enemies.
The first one, named Â«Â GhostÂ Â», rise from the floor when the player object is getting too close to them. It is based on the range between the objects, if the player object is going far from an enemy, this one is hiding on the floor again.
My main problem on this is getting the animation trigger available for all the enemies object. For now, itâ€™s just working fine for one enemy. But it doesnâ€™t work for multiple enemies on the same time (the 2 Ghost in the file)
For the second kind of enemy called Â«Â SkullbatÂ Â» as you can see, the flying animation only works for one enemy object. The second one is moving but donâ€™t want to play the Â«Â FlyÂ Â» animation and the collision box I have create doesnâ€™t stick on the image point of the Skullbat.
I think for both of the enemies class, the problem is the same.
I try the Â«Â for eachÂ Â» condition but maybe it doesnâ€™t work very well for this.
If you guys know how to fix that Iâ€™ll be glad!
https://www.dropbox.com/s/y7ldq3w0s9mbe ... .capx?dl=0