When I tap my buttons in the menu tab I want it to run that specific buttons class tab. Is this possible? If you can help thanks if not thanks anyway
~Griffin
When I tap my buttons in the menu tab I want it to run that specific buttons class tab. Is this possible? If you can help thanks if not thanks anyway
~Griffin
I’m not sure if this is what you are looking for at @GriffinC, but the code for calling an instance through a button you would use
function() instance.method() end
And you would use your button classes instance and a function within it to run what you want to do
Say I tapped Study on my main menu i want it to blackout and switch to the study screen ive made.
~Griffin
@GriffinC what you want to learn about is Finite State Machines. @Reefwing has a great tutorial on them here http://codeatuts.blogspot.com.au/2012/07/tutorial-5-finite-state-machines.html
Maybe this will help. If not, do a forum search for menu, there’s a bunch of examples.
http://codea.io/talk/discussion/2647/menu/p1
Thanks Ill attempt it
~Griffin