I am trying to rotate a cube at a constant rate using the following code:
Rem Project: texture01
Rem Created: 6/19/2007 11:10:47 AM
Rem ***** Main Source File *****
Set Display Mode 1280, 1024, 32
nTime = Timer()
Load Image "textureWood.jpg", 1
Load Image "eyecol.jpg", 2
Make Object Cube 1, 40
Texture Object 1, 2
Position Object 1, 25, 0, 100
Do
nElapsed = (Timer()- nTime)
If nElapsed = 250
Turn Object Left 1, 90.0
nElapsed = 0
nTime = Timer()
Endif
Loop
End
For some reason this does nothing, but the same code without the 3d commands works fine. Can anyone help? Here is the code without the 3d:
Set Display Mode 1280, 1024, 32
nTime = Timer()
Do
nElapsed = (Timer()- nTime)
If nElapsed = 250
Print "tick"
nElapsed = 0
nTime = Timer()
Endif
Loop
End
Thanks,
Matt