Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

storing variables



Hi,
I'm trying to create a particle system with a little more control over
what the individual particles can do than the built-in particle
generator, and have a couple questions:

This biggest issue i'm having currently is dealing with storing
variables.  For instance, from my actionscripting background I'm used
to repeating a statement such as 'a+=.5' over and over again to
increment a.  Problem is, of course somewhere 'a' had to be defined to
begin with.  So, (and I'm sorry if this has been covered before)  is
there a (hopefully elegant) way of setting a start position for a
variable, and then letting a script gradually change that number over
time?  I've thought about sending a constant number to the javascript
object, then doing '+=xxx' but of course every frame, the same
constant number will be sent as input[x] which effectively nullifies
any changes made in the last frame. Eh, hope this makes sense to you
all.

thanks,
Brandon


--
brandon_morse
email@hidden

http://www.coplanar.org
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.