Old 5th May 2004, 17:08   #1
eltoro
Senior Member
 
Join Date: Dec 2003
Location: California
Posts: 114
*Is there a way to get sprites to go off every minute...

without having to enter 00-99?
eltoro is offline   Reply With Quote
Old 7th May 2004, 10: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
Old 7th May 2004, 12:39   #3
PieturP
Member
 
PieturP's Avatar
 
Join Date: Mar 2004
Location: Amsterdam, The Netherlands
Posts: 90
I know it should be on the wishlist...

Wouldn't it be realy nice to activate the sprites from within a preset. That way, a preset would become more of a preset-pack. I've made some really nice tries on sprites, but some of them only work with some of the presets...
Also, when the preset would call them, they would really work together in a way

I'd like to code it like: 'sprite1=1; sprite1_a=.9'
to disable it: 'sprite1=0;'

or something like that....
PieturP is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > MilkDrop > MilkDrop Presets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump