[4.5.1] How can I know if I am "falling"

Shaoran

New member
How can I know if I am "falling", I mean if I am not colliding with anything and I am only in the air? :geek:
 

dale_coop

Moderator
Staff member
Which version are you using?

When you have a question, issue or request, don't forget to specify the version you are using, in the subject of the topic.
 

mouse spirit

Well-known member
You would do an if on ground check. So when not on ground and .. use a variable to tell if you are going up or down or... say if i am not on ground and not pressing jump.

Code:
LDA Object_physics_byte,x
    AND #%00000001 ;; is it on the ground?
    ;;your stuff here too

This code is just a rough example.
 
Top Bottom