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 / How do you obtain the scale of a SPARK particle?

Author
Message
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 15th Nov 2013 15:34
The thread for the plugin is now locked, so will try to contact the developer of the plugin, but I may as well ask here also since some people use it.

How do you obtain the scale of a SPARK particle? There is command for setting the scale, but not getting it if the scale is controlled internally.

Some commands in the plugin are undocumented.

Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 15th Nov 2013 18:53
You can try opening the dll with notepad and search for the name of a known function. It will have no whitespaces and start with a questionmark, most likely utilizing camel case, but its easiest to not searh for it with case matching.
After you find it there should be a list of all exported functions in the dll at regular intervals around there. It is a bit round-about but you could find undocumented functions that way, maybe there is something for reading the scale there.


"Why do programmers get Halloween and Christmas mixed up?"
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 15th Nov 2013 22:05
Hey, that was a cool idea; something I should try more often. After doing what you recommended I did not find such a function. I also found that the SP Scale Particle function does not work either; although you can scale the particles using the spark interpolators.

At least you can retrieve their current position and colour; but it would have been nice to be able to get their scale, not to mention their life.

Login to post a reply

Server time is: 2025-05-15 17:15:40
Your offset time is: 2025-05-15 17:15:40