F
FranFox
Guest
Hi everyone! I'm trying to detect the moment when player lands on a platformer game but I don't understand why my code isn't working.
This should work, right? If I remove the ! on the second check is entering in the validation :S
Any suggestions? Thanks!
GML:
// We've just landed?
if place_meeting(x, y + 1, o_solid) and !place_meeting(x, yprevious + 1, o_solid)
{
show_debug_message("Landed");
}
Any suggestions? Thanks!