I was trying to make a slideshow with this code:
SetPref( PREF_SPRITE_INTERVAL, ".05" ); // Bell curve centered at 5 mins, +/- 3 mins
SetPref( PREF_PARTICLE_DURATION, "10 + rnd( 26 )" );
SetPref( PREF_SPRITE_DURATION, ".25" );
I assumed the units were in minutes. Put up a sprite for 15 seconds pause 5 seconds then put up another sprite. Any one know why it doesn't work? thanks!
slideshow
Moderators: BTT, andy55, b.dwall, juxtiphi
- JayPro
- Posts: 738
- Joined: Sat May 01, 2004 10:51 pm
- Location: Huntington Station, Long Island, New York
Believe me, I've Really been trying to figure this out so I can be somewhat of help; but I honestly can't figure how the numbers in the code translate to the interval in time that it's trying to demonstrate.
Wth the Particle Duration, I'm assuming that it takes anywhere from 10 to 26 seconds for one to stay on the screen.
This is definitely one aspect of G-Force programming that definitely needs supplementary documentation for those of us who look at the code in pretty much the same puzzled way my dog looks at me after I change the water in her dish.
Wth the Particle Duration, I'm assuming that it takes anywhere from 10 to 26 seconds for one to stay on the screen.
This is definitely one aspect of G-Force programming that definitely needs supplementary documentation for those of us who look at the code in pretty much the same puzzled way my dog looks at me after I change the water in her dish.
"God is syntax."
Re: slideshow
The units are in seconds... If you look at the original boot file you'll see that the reference to "minutes" in the comments was in the form of seconds on the left. All you need to do is change it to:sleeper wrote:I was trying to make a slideshow with this code:
SetPref( PREF_SPRITE_INTERVAL, ".05" ); // Bell curve centered at 5 mins, +/- 3 mins
SetPref( PREF_PARTICLE_DURATION, "10 + rnd( 26 )" );
SetPref( PREF_SPRITE_DURATION, ".25" );
I assumed the units were in minutes. Put up a sprite for 15 seconds pause 5 seconds then put up another sprite. Any one know why it doesn't work? thanks!
SetPref( PREF_SPRITE_INTERVAL, "5" );
SetPref( PREF_SPRITE_DURATION, "15" );
If those changes were in the boot file (and not a script), you'll need to delete your prefs for that section that you edited to be executed (note how it's enclosed by an if-block that checks to see if the prefs effectively exist).
andy