LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Stuck: Collision detection

Root / Programming Questions / [.]

the_squat1115Created:
Well, I know I posted I think... 55 minutes ago about illegal MML on my program, but this is a serious trouble, the collision detection. If anyone knows how the hell im going to make it, I will be very grateful. But this is my movement control...
'Main loop
WHILE 1
SPOFS 0,180,175
'Movement left, right
IF BUTTON(0)==4 THEN DEC X
IF BUTTON(0)==8 THEN INC X
'Gravity
INC Y,2
'Ground stopping fall
IF Y>145 THEN Y=145
'Jump
IF BUTTON(0)==32 THEN DEC Y,70:BEEP 8
VSYNC 1
'Background movement
BGOFS 0,X,Y
BGOFS 1,X,Y
BGOFS 2,X,Y
BGOFS 3,X,Y
WEND
If anyone knows how do I in the world make Collision Detection with this, tell me in the comments.