I want that when the touch or mouse presses a sprite, increase the position Y of this sprite
sprite.setInteractive()
sprite.on(‘pointerup’, () => {
sprite.y -= 50
})
I want that when the touch or mouse presses a sprite, increase the position Y of this sprite
sprite.setInteractive()
sprite.on(‘pointerup’, () => {
sprite.y -= 50
})