View Single Post
Old 7th May 2004, 11:23   #2
Krash
Major Dude
 
Krash's Avatar
 
Join Date: Jun 2001
Location: Sydney, Australia
Posts: 977
Not really, though if you only have a few sprites that you want to do this with, you could get away with something else.

If you coded into each of your sprites to check once a minute (when time mod 60 = 0) what the current value of frame is, and setting opacity to either 0 (totally transparent) or a non-zero number, depending on the mod of the framecount.

so, in one sprite code, you'd have
a=if(equal(time&60,0),if(equal(frame&3,0),1,0),a);

and in two others, check frame&3 against 1 and 2.

When you start milkdrop, activate all three sprites, and once a minute, it will appear to randomly change which sprite is being displayed.

This wouldn't work for very large numbers of sprites - as you'd quickly fill up your video ram, and MD would slow to a crunchy halt.

- Krash

Eighty-three percent of all statistical quotes are made up on the spot.
Krash is offline   Reply With Quote