Howdy.
I have been having a little trouble with my coding.
It may be a bug, but I am pretty certain that it is not. I am using DBPRO.
Okay, when I use this code:
main_menu:
set text font "Lockergnome"
set text size 42
do
if text_button(350,200,"Start New Game")= 1 then goto newgame:
if text_button(350,235,"Options")= 1 then goto options:
if text_button(350,270,"Credits")= 1 then goto credits:
if text_button(350,305,"Exit The Game")= 1 then end
sync
loop
credits:
cls
play animation 1,350,250
sleep 4000
, the animation that I loaded previously dosent play. It skips the play animation and cls code and goes straight to the sleep 4000 code.
I have tried loading the animation using both:
load animation "Animation\credits.avi",1
and
C:\Documents and settings\ yada yada whatever (Not actual code if you are a bit dim)
and using a .swf instead of avi and I know for a fact that the filename is perfect because it does not come up with any sort of error. It just plays the buttons, you click, it waits for 4000 and dies.
I have also tried it without the sleep 4000 code but then it doesnt wait and just dies.
Could somebody please help?