Hmm.. still can't get i work. The very strange thing is that TDK full script:
Sync On: CLS 0
Sync Rate 60
AutoCam Off
Hide Mouse
Make Matrix 1,2000,2000,20,20
Create Bitmap 1,128,128
CLS RGB(0,128,0)
Get Image 1,0,0,128,128
Set Current Bitmap 0
Delete Bitmap 1
Prepare Matrix Texture 1,1,1,1
Make Object Cube 1,3
Position Object 1,1000,3,990
Color Object 1,RGB(255,0,0)
Make Object Box 2,80,20,3: Rem Create a wall
Position Object 2,1000,3.0,1000
Ghost Object On 2
Position Camera 1000,50.0,950
Point Camera 1000,3,990
Speed#=0
Do
If UpKey()=1 Then Speed#=0.4: Move Object 1,Speed#
If DownKey()=1 Then Speed#=0-.4: Move Object 1,Speed#
If LeftKey()=1 Then YRotate Object 1,WrapValue(Object Angle Y(1)-2.0)
If RightKey()=1 Then YRotate Object 1,WrapValue(Object Angle Y(1)+2.0)
ObjPosX#=Object Position X(1)
ObjPosZ#=Object Position Z(1)
Position Camera ObjPosX#,50.0,ObjPosZ#-40
Point Camera ObjPosX#,3.0,ObjPosZ#
If OBJECT COLLISION(1,0)>0: Rem collision detected
Repeat
Move Object 1,0-Speed#
Position Camera Object Position X(1),50.0,Object Position Z(1)-40
Point Camera Object Position X(1),3.0,Object Position Z(1)
Until OBJECT COLLISION(1,0)=0
Endif
Sync
Loop
End
... is running great in DBPro by itself. But when i copy the script into my script, it just dont seems to work. =/
Hello!