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 / Enhanced animation

Author
Message
Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 23rd May 2010 08:07
Is there an example with this addon in action that I can use the code to help me out getting started with it?

Thanks
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 23rd May 2010 12:00
Several examples come with the plugin. They should be in your Projects folder...

But since I'm feeling generous they are attached!

I may have altered some of the code however so they are not as shipped...

Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 23rd May 2010 21:36
Thank you you baxslash you are cool hehehe
Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 2nd Aug 2010 04:14
Another question how do you check if an oac model exists?
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Aug 2010 18:05
I think you'll have to keep track of it yourself as there's no "OAC exist" command.

If you are using a lot of objects I'd use an array so say you have 100 objects (numbered 1 to 100) you could just use something like:

...to dimension the array


...to set object number "obj" to exist

...and...

...to check if the OAC exists.



Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 4th Aug 2010 23:52
Thanks again sir.
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 5th Aug 2010 00:24
have a look at list arrays, that way you're not limited to a certain amount and don't hog resources that aren't being used. There's plenty of info on them in the help file.

Login to post a reply

Server time is: 2026-07-25 12:05:15
Your offset time is: 2026-07-25 12:05:15