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 / Is there a way to 'fork' a subroutine in DBPro?

Author
Message
roswell
23
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 27th Apr 2003 01:39
I have a user-defined function in one of my programs that handles an animated sprite explosion for a mortar round. The animation only has 5 frames, but I can definitely notice the progress of the game stops momentarily while the animation plays. Is there a way in DBPro to kick-off a function, and then return to the main loop while the function completes on it's own time? They call this a 'fork' in unix terms, and I'd like to know of DBPro has something comparable.
/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 27th Apr 2003 02:58
In a word, the short answer, is currently (and unfortunately) no.
The only way around it is to create a timer inside a DLL and somehow get the data back.

I would certainly love interrupt-driven sprite movement/animation.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 12:00:50
Your offset time is: 2026-07-11 12:00:50