corona-director

Stop event propagation in Corona SDK

五迷三道 提交于 2019-12-12 13:47:37
问题 I'm using Corona SDK, and Director 1.4 to create an app. My goal is to open a popup when the button ( btn_play ) is clicked. However, I encounter a problem. When the btn_play is clicked, it triggers openPopup(e) as well as changeScene(e) (as the background is set to execute the function). How can I stop the function changeScene(e) from executing when clicking the btn_play button? Here is my game screen's codes: module(..., package.seeall) local localGroup function new() localGroup = display