Sprite fade from foreground to background and back again?
Moderators: BTT, andy55, b.dwall, juxtiphi
-
- Posts: 9
- Joined: Fri May 27, 2005 10:49 am
Sprite fade from foreground to background and back again?
Does that question make sense? Is it possible to fade a sprite from being a foreground sprite to a background sprite and back again?
Not really. You could fake it but I'm not sure how good it would turn out.
Say you have a pic named Pic1B.jpg (B for background) and copy it and rename it Pic1F.jpg (F for foreground). Now, if Andy had kept the simplicity of the foreground folder you would need this part BUT.... copy the file in the sprites folder called (Default).txt and rename it Pic1F.txt. (To match the name of the JPG) The edit it and add the line PEN = 1. (save it).
Then create a script like this:
0:00:00
StartSprite( "Pic1F",15);
0:00:13
StartSprite( "Pic1B",15);
0:00:28
StartSprite( "Pic1F",15);
This way there will be a 2 second "overlap". I don't think there will be much 'fading' going on but G-Force will switch between fore, back and fore.
Say you have a pic named Pic1B.jpg (B for background) and copy it and rename it Pic1F.jpg (F for foreground). Now, if Andy had kept the simplicity of the foreground folder you would need this part BUT.... copy the file in the sprites folder called (Default).txt and rename it Pic1F.txt. (To match the name of the JPG) The edit it and add the line PEN = 1. (save it).
Then create a script like this:
0:00:00
StartSprite( "Pic1F",15);
0:00:13
StartSprite( "Pic1B",15);
0:00:28
StartSprite( "Pic1F",15);
This way there will be a 2 second "overlap". I don't think there will be much 'fading' going on but G-Force will switch between fore, back and fore.