You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add to sprite that has been extended the listener.
In a complex project the ideal is to create another file Game.listeners.js to isolate the events in a separate file. And then import into projects.json
09 | How to use touch event
Game.layers.js
Edit the Game.layers.js
Add to sprite that has been extended the listener.
Events:
onTouchBegan: on press
onTouchEnded: on release
onTouchMoved: on press and move
onTouchCancelled: on canceling
The text was updated successfully, but these errors were encountered: