However, It’s not working. It’s meant to slam down when the player’s x position is equal to one of the bottom corners, and when it’s UNDERNEATH the enemy (Hence the Y position conditions).
(Currently it just changes animation, since I’m trying to get it to detect the player first before I start making the slam down events)
Comparing the X position of Maxiji and the hossod point requires them to be exactly the same. 3.000001 is not the same as 3.00, and so the condition won’t be met.
What I’d do is check whether Maxiji’s X position lies between the two blocks’ X points and is below the block - something like:
AND Maxiji.CentreX > hossod.PointX("triggerpointdownleft") Maxiji.CentreX < hossod.PointX("triggerpointdownright") Maxiji.CentreY > hossod.PointY("triggerpointdownright")