A Simple Trick To Make Your Sprites React to Sound

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

A Simple Trick To Make Your Sprites React to Sound

Post by JayPro »

This is as of now the only way I've formulated to integrate your sprites with the sonic environment in G-Force. In other words, all this will do is light up the picture. It won't make the sprite grow or shrink in time to the music; I think this is impossible right now anyway.

Step 1. Go into your (Default) doc located in the Sprites folder.

Step 2. Locate the section where you see the Function EPen or Pen.

Step 3. If EPen is already there, replace the FADER value within the quote-marks with fft(s). Here you can also add other funcs such as sin, cos or trwv or add an additional A variable to control the rate of "sonic lighting" you desire. (EDIT: The Pen algorithm for the Parkening Power waveshape is totally choice. You will, o'course, need to supply the temp var C statement into the (Default) document.) You can also, of course, re-integrate FADER to combine that parameter's slow on-off trailing function with the pulse.

Apropos of this, I definitely recommend fft because this controls the lighting in a way comparable to a dim-switcher. My observations showed that using mag simply created a flicker, and no addition of any variables would IMO make any perceptible difference.

Stay tuned to my soon-to-be-edited earlier post on Suggestions for further info.
"God is syntax."

User avatar
juxtiphi
Moderator
Posts: 1471
Joined: Sat Jan 15, 2005 1:29 pm

Post by juxtiphi »

ok I did that and it does pulse if you will, but It really cant be seen under the all the other stuff going on. all I could see were maybe the edges and I tried all the sprites how can I make them brighter?

here are some shots of what Im seeing. I used the toolbar to select all the pics in my sprite folder I selected the schematic for the bottom screenshot

Image

in the top one the pic is very dim

in the bottom its nonexistent

Image

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

Post by JayPro »

I'm gratified to see that it works for you in some small way; but keep in mind that this is an ongoing experiment. I intend to work with temp variables and the bass function, which for my short-cutting, lazy self means wading into the Pen parameters within my WaveShape collection.

This means reconsidering mag(s), too.

Nothing is written in stone.
"God is syntax."

User avatar
juxtiphi
Moderator
Posts: 1471
Joined: Sat Jan 15, 2005 1:29 pm

Post by juxtiphi »

JayPro wrote:I'm gratified to see that it works for you in some small way; but keep in mind that this is an ongoing experiment. I intend to work with temp variables and the bass function, which for my short-cutting, lazy self means wading into the Pen parameters within my WaveShape collection.

This means reconsidering mag(s), too.

Nothing is written in stone.
well then, I await your next tweak 8)

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

Post by JayPro »

At least then we can say you won't hafta wait till next week for my next tweak. :roll:
"God is syntax."

User avatar
juxtiphi
Moderator
Posts: 1471
Joined: Sat Jan 15, 2005 1:29 pm

Post by juxtiphi »

JayPro wrote:At least then we can say you won't hafta wait till next week for my next tweak. :roll:
:lol: Hope I didnt put to much pressure on you :lol: no worries jay when ever and what ever you come up with is fine by me :wink: 8)

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

Post by JayPro »

That wasn't a complaint...

Look at what I said again and look for the play on words.

I used the smilie that to me came closest to one agonizing over a bad pun. :idea:
"God is syntax."

Post Reply