I got DB 3 days ago now, and I have basic 3d movement. Here's the code:
SYNC ON
SYNC RATE 0
HIDE MOUSE
MAKE OBJECT CUBE 1,30
COLOR OBJECT 1,RGB(000,100,000)
POSITION CAMERA 0,255,-255
POINT CAMERA 10,10,10
DO
IF SHIFTKEY()=1 Then speed#=1 else speed#=0.4
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
SYNC
LOOP
If you read through,ytou can tell that holding shift will cause you to speed up. Anyways, I need collisions, and whatever I try won't work....
Any help?
Hi