Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / loop object for a certain amount of time

Author
Message
Mikeygd3
12
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 23rd Apr 2014 17:37
i need to loop an object for just a few seconds. i dont want to use play object though
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 23rd Apr 2014 17:46 Edited at: 23rd Apr 2014 19:48
For timers i like to use something like t#=timer()+n
To see if the timer has elapsed: if timer()>t# then...

While this timer is still going you can use SET OBJECT FRAME to control your object's animation.
You'll need an additional timer to control the frame speed this way.

666GO†O666

Login to post a reply

Server time is: 2026-07-06 01:50:54
Your offset time is: 2026-07-06 01:50:54