WARNING: This code LOCKS UP the computer.... or at least mine. Don't come after me if you lose data.
When I run the code normally, theb when it prints to the screen the first time ("0 FPS") it just locks up. I cannot do anything to exit (not even ctrl-alt-delete).
When I run the code in step-by-step debug mode i found out the error happens exactly at the sync command... Weird...
Then with help by a process of elimination, I found out that the error is in the line:
Texture Object Objects,Ball
If you wanna test the code, first run it as is... "Weee, It works". Then remove the two "`" (rem thingies) in the For-Next loop and try again... "Buhuu, it doesn't work".
What is wrong with this code??? Or maybe it's a bug???
P.S: The image will be posted later because my webserver is currently down. It is 64x64 16bit.
Sync On
Sync rate 0
#Constant Ball 10
#Constant BallBlur1 11
#Constant BallBlur2 12
#Constant BallBlur3 13
#Constant BallBlur4 14
#Constant BallBlur5 15
Load Image "Imgs\Ball.bmp",Ball
For Objects=Ball To Ball+Option_BallBlur
Make Object Sphere Objects,10
Fix Object Pivot Objects
` Texture Object Objects,Ball
` Set Object Texture Objects,1,1
If Object>Ball Then Ghost Object On Objects
Next Objects
Do
Text 0,0,Str$(Screen FPS())+" FPS"
Sync
Loop