Hello people
I'm pretty sure I know how to
check for collisions, but what do I do then?
Here is a silly collisionless program I made just now
SYNC ON : SYNC RATE 100
SET TEXT SIZE 18 : SET TEXT FONT "Impact"
CENTER TEXT 300,200,"Loading..." : SYNC
MAKE OBJECT CUBE 1,25
COLOR OBJECT 1,RGB(0,255,0)
SET OBJECT COLLISION ON 1
MAKE OBJECT CYLINDER 2,75
COLOR OBJECT 2,RGB(255,255,0)
MOVE OBJECT 2,150 : MOVE OBJECT UP 2,25
SET OBJECT COLLISION ON 2
OY=0
DO
IF UPKEY()=1 THEN MOVE OBJECT 1,2
IF LEFTKEY()=1 THEN OY=OY-2
IF RIGHTKEY()=1 THEN OY=OY+2
IF DOWNKEY()=1 THEN MOVE OBJECT 1,-2
YROTATE OBJECT 1,OY : POSITION CAMERA OBJECT POSITION X(1),OBJECT POSITION Y(1)+45,OBJECT POSITION Z(1)
YROTATE CAMERA OY : MOVE CAMERA -125
IF OBJECT COLLISION(1,2)=1 THEN `Now what? o_O
IF ESCAPEKEY()=1 THEN GOSUB ENDING
SYNC
LOOP
ENDING:
CLS : SET TEXT SIZE 18 : SET TEXT FONT "Impact"
SYNC : CENTER TEXT 300,200,"Deleting Game Objects..." : SYNC
DELETE OBJECT 1 : DELETE OBJECT 2
END
As you can see nothing happens when a collision occurs o.0