Skip to content

Instantly share code, notes, and snippets.

@CodeaLuis
Created November 17, 2013 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeaLuis/7515145 to your computer and use it in GitHub Desktop.
Save CodeaLuis/7515145 to your computer and use it in GitHub Desktop.
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