Created
November 17, 2013 16:27
-
-
Save CodeaLuis/7515145 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ?:init(x) | |
-- you can accept and set parameters here | |
self.EffectAlpha = 135 | |
tween(4,self,{EffectAlpha = 0}) | |
end | |
function ?:draw() | |
-->APPLY THE SIMPLE EFFECT | |
fill(5,5,5,self.EffectAlpha) | |
-->MAKE YOUR BUTTON | |
rect(650,-3,100,1014) | |
sprite("whatever you want",WIDTH/2+330,HEIGHT/2,self.EffectAlpha/2) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment