Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorClark
- CommentTimeMar 9th 2009
Hi all!
Thanks Richard for this excellent library!
I have a situation where i want to spawn a few particles at the outside edges of the stage. I want these partciles to be pulled towards the centre.
Consider you creating a 100px by 100px circle sprite and centering it on stage. Id like the particles to be drawn to and orbit around the circle perimiter.
Not sure if this is possible? I tried using a gravity well but the motion is fairly chaotic in my attempts.
Also on top of this, Id like my particles to change colors. I also noticed i think ColorChange but this seems to take 2 colours. I am looking to use 7 colours. Is this fairly easy to implement?
One last thing! I have been scared of 3d for some time now and notice you have 3d support. Really impressive! Can you recommend a good source which would get me started with papervision/general 3d AS3?
Thanks everyone. -
- CommentAuthorRichard
- CommentTimeMar 16th 2009
Hi
You could try using the gravity well but adding another action to stop the particles getting too close - maybe an anti-gravity with a small effective distance. But for the best effect you probably need to create a custom action. One day I should write a tutorial on creating custom actions, but in the meantime look at the source code of some of the existing actions - the structure's very simple. In may cases your action jsut needs two methods - the constructor and the update method.
The same is true of the color change that you need. A custom action would be perfect. Look at the code for the existing ColorChange action for guidance.
For 3D, there's lots of tutorials online, but unfortunately I don't know them well enough to guide you to the best. Alternatively, if you get a chance to go to a short course by the dev team of one of the engines - it doesn't really matter which one for now, you just need to get your feet wet - then grab it.
1 to 2 of 2
