Hi
Using DB Pro
I am trying to write an opening sequence for my game of breakout.
The title page consists of the background (a texture box that covers the screen) and 8 cubes (make object box) each with a separate letter of the word BREAKOUT.
The idea was to spin the cubes slowly on the screen so that the word breakout breaks up and is then reformed as the letter finish thier cycle. After a short time the letters would dissapear and the game proper would start.
To do this I used the following code after setting up all the variables and boxes etc in a previous function.
waittime = timer()
do
for a = 1 to 8
xrotate object a,object angle x(1)=0.75
if timer() = waittime+ 4000
rem move the cubes off the screen
position object a,0,0,-40
exit
endif
sync
loop
rest of code
The cubes and the background all apppear on the screen and the cubes appear to have rotated just the 0.75. After the four seconds the letters dissapear and the game starts.
I tried the code on its own and the cubes rotate in space as I imagined they would do. Can anyone see what I am doing wrong.
Any help would be appreciated.
Many thanks
Mickyfn