i am using the simulator to test a game.
Within my “Play” scene I have three buttons.
One of the buttons has the purpose of starting play or pausing play.
The code is as follows:
function onPlayPlayRelease( event )
local btn = event.target
if PlayPause == false then
PlayPause = true
PlayPlay:setLabel( “Pausbutton e” )
Runtime:addEventListener(“tap”, TapListener )
else
PlayPause = false
Runtime:removeEventListener(“tap”, TapListener )
PlayPlay:setLabel( “Play” )
end
end
I am getting erroneous button actions. That is, while moving the cursor around other parts of the screen it appears the Button Release event is triggered and the Play button keeps switching from “Play” to “Pause”
Any suggestions as to how I can overcome this?
Henry “Pops” Hugo