PDA

View Full Version : Having problems with timers


dgran98
03-05-2010, 09:49 PM
hi all, ok I've recently gotten ahold of the source code for a game ( released by the creator ) and i have been playing with it trying to add features etc now everything is working great except for timers.

the program was written in blitz3d ( a weird basic based language ) and none of the normal timer stuff seems to work.

what I am trying to do is make it so the entrance fireworks go off after a certain time ( 2 seconds then every second after that )


if ftimer = 2000
CreateExplosion2(0,0,75,285,1)
CreateExplosion2(0,-80,75,-285,1)
endif

if ftimer = 4000
CreateExplosion2(0,10,75,285,1)
CreateExplosion2(0,10,75,-285,1)
endif
CreateExplosion2(0,20,75,285,1)
CreateExplosion2(0,20,75,-285,1)

if ftimer = 6000
CreateExplosion2(0,30,75,285,1)
CreateExplosion2(0,30,75,-285,1)
endif


ANY help would be appreciated as I've tried so many different things over the last 2 weeks and am at the end of my rope.