PDA

View Full Version : How to create a script to load ramdom image sequences to be applied in sprites?


morimitsu
06-06-2005, 05:11 AM
I have an image sequence that I want to apply randomly in sprites. How to script it?

drGonzo
06-06-2005, 05:50 AM
Add spriteNumPP and write this in creation:
Say you have 20 images:

particleShape1.spriteNumPP = rand (0,21);
//or to be purist
particleShape1.spriteNumPP = trunc (rand (0,21));


Dont forget to load your images as a sequence.

CGTalk Moderation
06-06-2005, 05:50 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.