Hello,
I am making a platformer with some boxes that I want to have destroyed if the player is doing a special move while falling. It seems really simple but I'm having trouble for some reason getting it to work. I have a solid box and a collision sprite positioned on top of the box. I am also using instance variables to check if the box can be destroyed:
Player: on collision with Box Collision Sprite and Box collision sprite variable is 0, player is falling, and player animation down attack is playing, add 1 to box collision sprite variable.
In another event:
Box collision sprite variable equals 1, Box set animation 2. Animation 2 is of the box is exploding.
In another event: Box on animation 2 finished set solid disabled and destroy the Box and the Box collision sprite.
Comparing Y doesn't seem to do anything as well. When I preview the project the code works in a way, the animation plays but all of the boxes get destroyed when I just do the attack on one box. What am I doing wrong, or is this a bug? Thanks!