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 / Object Manager Framework

Author
Message
Sigh
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location: The Big 80s
Posted: 25th Oct 2011 23:20
I've been rewriting my object manager framework lately and decided to post it up for use. Use it however you want to.

The functions started as a way to reference and manipulate objects by name rather than ID numbers. In the rewrite, I've added velocity, rotation rate, and YPR rates which automatically apply themselves when an object is updated with the Object_Update() function. The functions aren't commented, but you can probably figure out what they do by the function names and a little code browsing. Beware that the functions rely on an error handler (Error_Write()) to spit out error messages to the console log.

Here are the functions:



And here is an example of how to use a few functions:



Comments and suggestions are welcome. I'll be posting a file with updates/additions as I make them at: http://ixeelectronics.com/Development/Object_Manager_Functions.txt
There are a few fixes I need to make such as coding the rotation/velocity/ypr rates to be time-based rather than call-based.

Keep your Hope & Change to yourself, I choose Liberty! Stop by for a chat! [IXE]Nateholio on irc.maxgaming.net:6667 #GarageGames

Login to post a reply

Server time is: 2026-07-10 06:08:28
Your offset time is: 2026-07-10 06:08:28