I am testing the code below to see how 3D commands work. When I use the synergy editor a command window is openned and immediately closes not showing anything at all.
If I run it with the editor that comes originaly with Dark Basic Pro, a cube is shown and I can use the arrow keys to move it.
Is there any issue with Synergy Editor regarding working with objects.
SET DISPLAY MODE 1024,768,32
AUTOCAM OFF
SYNC ON
SYNC RATE 60
MAKE OBJECT CUBE 1, 10
COLOR OBJECT 1, RGB(0,255,150)
POSITION CAMERA 30,30,30
POINT CAMERA 0,0,0
MAKE LIGHT 1
POSITION LIGHT 1, 0,30,0
DO
IF DOWNKEY()=1 THEN PITCH OBJECT DOWN 1,1
IF UPKEY()=1 THEN PITCH OBJECT UP 1,1
IF RIGHTKEY()=1 THEN TURN OBJECT RIGHT 1,1
IF LEFTKEY()=1 THEN TURN OBJECT LEFT 1,1
SYNC
LOOP
END
Regards
Jorge Maldonado