E
espiadimonis
Guest
Hello, lovely gamemakers
I wanted to check if the player is falling by creating this varaible: falling = (yprevious < y),
I'm drawing it on the screen to test it and it always returns 0.
I've been messing around with it:
So y and yprevious have the same value, even though the player is moving up and down the screen :/
I wanted to check if the player is falling by creating this varaible: falling = (yprevious < y),
I'm drawing it on the screen to test it and it always returns 0.
I've been messing around with it:
falling = (y + yprevious), returns the expected value, let's say 1235
I also created a variable: veamos = (y == yprevious), which returns 1but,
falling = (y - yprevious) returns 0