hello guys, i was wondering how would i make a function for a button so when its in the “begin” phase it changes that button to a hover type effect like a link and then when its in the “ended” phase, it goes on to the next scene with would be the level select screen.
and yes, im using the director class but just not exactly sure how i would use it, im a noob
local function play (event)
if event.phase = “begin” then
change button to hover
otherwise if event.phase = “ended” then
switch scene to level select
end
end
playbutton:addEventListener(“touch”, play)
[import]uid: 122076 topic_id: 21988 reply_id: 321988[/import]
[import]uid: 52491 topic_id: 21988 reply_id: 87435[/import]