Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

:on-click support for image ? #14

Open
wontheone1 opened this issue Feb 6, 2018 · 1 comment
Open

:on-click support for image ? #14

wontheone1 opened this issue Feb 6, 2018 · 1 comment

Comments

@wontheone1
Copy link

wontheone1 commented Feb 6, 2018

I noticed :image is like sprite in many other game engines, but seems there is no api for adding on-click callback. I think sprites having support for on-click is quite common game engine functionality. Am I missing something ? Should this functionality be added in the future?

I am thinking that this on-click event should include the information about :image (sprite) that was clicked.

@oakes
Copy link
Owner

oakes commented Feb 23, 2018

Sorry for the late reply -- I plan on working on this soon. Right now you have to make a click listener and do the coordinate calculation yourself, but I definitely plan on adding this into the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants