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!