Here is your code with collision (and one more box added, so that the first box will have something to hit..)
SYNC ON
SYNC RATE 0
HIDE MOUSE
MAKE OBJECT CUBE 1,10
MAKE OBJECT CUBE 2,20
POSITION OBJECT 2,50,0,50
COLOR OBJECT 1,RGB(000,100,000)
POSITION CAMERA 0,255,-255
POINT CAMERA 10,10,10
SPEED#=0.4
DO
IF UPKEY()=1 THEN MOVE OBJECT 1,speed#
IF DOWNKEY()=1 THEN MOVE OBJECT 1,speed#
IF LEFTKEY()=1 THEN TURN OBJECT LEFT 1,.7
IF RIGHTKEY()=1 THEN TURN OBJECT RIGHT 1,.7
`---Collision Detection----
IF OBJECT COLLISION(1,2)>0
`Events that will happen if object one is hitting object 2
speed#=0
print "Colliding !"
else
speed#=0.4
endif
SYNC
LOOP
@Scraggle: I understand, but what i do not is understand is, what is the place to do it? I should open a new website rather then helping on the website where actually are peoples that use db and need help ?This message is not abusive to anyone, but really i do not understand why this should be forbidden, but rules are rules, and i respect them, so if a moderator decides to lock this thread, it will be alright with me.