0 Members and 2 Guests are viewing this topic.
:If not(pxl-test(Y+2,X):Y+1->Y // or whatever you want to do for gravity
:If (K=21)pxl-test(Y+2,X:5->J // something that starts the jump
:Y-C->Y:If not(pxl-test(Y+2,X:C-1->C
:Y-(C>0)->Y:Y+(C<0)->Y:If not(pxl-test(Y+2,X:C-1->C
EDIT: You should probably store pxl-test(Y+2,X) to a variable, cause it is used a bunch of times.
:If pxl-test(Y+2,X:0->C
:If pxl-test(Y+2,X) and (C<0):0->C