"Pulsating" effect...what's the proper method?
View Single Post
02-05-10, 11:25 PM
A Molten Giant
Join Date: Sep 2009
Originally Posted by
I'm not sure about how it would work in lua, but any pulsating effect can be achieved with a simple sinus function.
var sequence = 0;
AlphaProperty = sin(sequence);
this would result in the AlphaProperty going from 0 to 1, then from 1 to 0 and so on. google 'math sin lua' for more info
True, but that would require an onupdate function. And an onupdate function gets called at every frame. So if you run at 120 FPS your calling a sin function 120 times per second. Not that efficient as running my way(look above).
Three things are certain,
Death, taxes and site not found,
You, victim of one.
View Public Profile
Send a private message to nightcracker
Find More Posts by nightcracker