Tap toggle

Hi everybody,

I have a button to make visible a menu 

function onPlaymenu( event ) groupbtn.alpha = 1 end mybtnmenu:addEventListener( "tap", onPlaymenu )

I would like to toggle this button to make the menu “non visible”, visible and so on…

How can i achieve this?

trying to find some tutorials but i don’t really know where to search.

Thanks

Based on your code :

function onPlaymenu( event ) if groupbtn.alpha == 1 then groupbtn.alpha = 0; else groupbtn.alpha = 1; end end mybtnmenu:addEventListener( "tap", onPlaymenu )

@ulydev5 => thanks and sorry for the late reply , i was on holidays :wink:

Based on your code :

function onPlaymenu( event ) if groupbtn.alpha == 1 then groupbtn.alpha = 0; else groupbtn.alpha = 1; end end mybtnmenu:addEventListener( "tap", onPlaymenu )

@ulydev5 => thanks and sorry for the late reply , i was on holidays :wink: