the wing of the cat doesn’t detect. i can just hit the wing to anything and it doesn’t detect collision.
the middle of the cats ears also doesn’t detect collision.
everywhere else does tho.
Check the global variable god is set to false - log it to console to confirm it, with something like : .
Then press ctrl + shift + i when playing the game and click on the console tab to see the value of the global variable god (it’ll be 0 for false or 1 for true)
Also, you don’t need the outer If all these conditions are true. And If cat is in collision with floor is the same as If floor is in collision with cat. Something like this will suffice :
If that doesn’t solve it, check the collision masks for the other animations.
thanks but i tried and god was false. also I checked all the collision masks and they all looked right. it was also only the wing that it didn’t recognise but thanks anyway.
Alternatively, you could just have the playing character on screen with an obstacle. Temporarily add dragging behaviour, and drag the character around to see where collision works.
As a heads up, the platformer behavior only uses the highest point of the collision mask to the lowest point of the collision mask, plus the left most to right most sides.
A diamond shape collision mask will be ignored entirely.
You can also take a look at the “tappy plane” example in the engine, as it is a full flappy bird example.