Hi guys,
I have a problem with a project I am working on. In short, there is a button which
the user must press in order to move a character. On event.phase == “began” I set
[lua] display.getCurrentStage():setFocus( event.target )[/lua]
and on event.phase == “ended” I set this
[lua]display.getCurrentStage():setFocus( nil )[/lua]
However, there is a scenario when the character can die while the user holds the button and then
I go to a new screen using the storyboard API.
If the user holds the button after the scene changes I get a crash because the storyboard has cleared the previous scene.
Is there a way to force stop the touch before I change scenes?
Thanks