Goto function? Is there one...

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


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.


@GriffinC what you want to learn about is Finite State Machines. @Reefwing has a great tutorial on them here

Maybe this will help. If not, do a forum search for menu, there’s a bunch of examples.

Thanks Ill attempt it