Has This Been Done B: Make Your Sprites Pulse to the Music!

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

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

Has This Been Done B: Make Your Sprites Pulse to the Music!

Post by JayPro »

This is no joke; and I'm truly surprised if no one's ever caught on to this trick before. But here goes anyway.
BTW, this will work on the condition that you have in your Sprites folder (i.e. not in any subfolder therein) the following:

a JPEG file (Moon.jpg) and a .txt file of the same name"

Step #1. Simply Drop your pic into the Sprites folder.
#2. Duplicate the Moon.txt file and rename it "title_of_your_pic.txt".
#3 and this is the fun part.... Change the Pen function from FADER to fft(s) and tweak from there or BASS divided by a number less than one. Second Thought Edit: It'll take some tweaking here as well to see which math operator goes with what level number...To Wit: does one solely divide by a decimal value and increase the power of the operator (i.e. /-+*) at/above whole number-level?
BTW, using mag(s) is altogether possible too, but IMO you'll surely need to tweak with values within the func to get the pulse to behave the way you want it too. If anyone has any ideas on how to work mag() here, I'm all ears.
Optional: You can experiment with the "Layr" and "Invt" parameters in Moon.txt (set either one to 1 or 0 only) to see if doing so further suits your purposes.

PS: Don't even bother changing the pic float speed A variables; as
A. your pic will be stationary 2 out of 3 times it's loaded (see the //commentary on var a4 in Moon.txt)
and
B. if the pic size dimensions are large enough, the question of its moving around the screen are moot anyhow. So to get an idea of what size your pic should be if you do want to see it move, refer to the Moon.jpg dimensions. What's more, if you're an expert programmer, you can change the (t) code to have it move however you want it to.
Last edited by JayPro on Thu Aug 09, 2007 10:07 pm, edited 7 times in total.
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

Sounds good. I may try it sometime. 8)

Post Reply