Help with Sprites (Duration & Interval)

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
f00fighter
Posts: 20
Joined: Sun Aug 22, 2004 10:23 pm
Location: Coatesville, Pennsylvania, USA

Help with Sprites (Duration & Interval)

Post by f00fighter »

I am trying to tweak the PREF_SPRITE_DURATION and PREF_SPRITE_INTERVAL settings in the BOOT.TXT file but I'm not getting the results that I am looking for...please help!

I want to see a new sprite every 20 seconds (is this PREF_SPRITE_INTERVAL??), with each one lasting 10 seconds (is this PREF_SPRITE_DURATION??) which should create a 10 second gap where no sprite displayed between each sprite. How can I accomplish this???

Example:
- Sprite A is displayed for 10 seconds
- No sprite is displayed for 10 seconds
- Sprite B is displayed for 10 seconds
and so on...

I tried these settings, but no luck...

Code: Select all

SetPref( PREF_SPRITE_DURATION, 		"10" );
SetPref( PREF_SPRITE_INTERVAL, 		"20" );	
Can someone help me out here? Thanks!

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Post by JayPro »

First of all, are you using the standalone or a media player?
If the latter, then based on the information you provide (which makes sense to me BTW), I'm not sure why you don't get your desired results.
If you use the standalone, I believe the best way to edit is thru the Prefs file. I haven't had much chance to edit anything thru either document recently, and especially I'm not sure how confident I am in explaining the slightly differently-worded language of the Prefs file to you.
I hope this is of help.....I'm *far* from a scripting maven, as you can prolly figure out.
:oops:
"God is syntax."

f00fighter
Posts: 20
Joined: Sun Aug 22, 2004 10:23 pm
Location: Coatesville, Pennsylvania, USA

Post by f00fighter »

Oops...double post!
Last edited by f00fighter on Thu Jan 06, 2005 9:08 pm, edited 1 time in total.

f00fighter
Posts: 20
Joined: Sun Aug 22, 2004 10:23 pm
Location: Coatesville, Pennsylvania, USA

Post by f00fighter »

Hey JayPro - Thanks for the tip!

I backed out my changes in BOOT.TXT and changed the appropriate PREFS file instead like you suggested (and as shown below):

Code: Select all

SDur="10"
SInt="20"
This is giving me much better results...although the timing still seems to be off a bit...so perhaps there's yet another random timing value that I am not aware of that has some impact on the display of background sprites??

Anyway, I just wanted to say thanks! I am now seeing my collection of background images much more frequently! :D

Post Reply