proyecto26 / Phaser-Kinetic-Scrolling-Plugin

Kinetic Scrolling plugin for Canvas using Phaser Framework
https://proyecto26.github.io/Phaser-Kinetic-Scrolling-Plugin/
MIT License
131 stars 26 forks source link

select element #2

Closed Ryuuke closed 8 years ago

Ryuuke commented 8 years ago

Hello, Nice plugin, but I'm encountering some troubles to select an element. Say I wanna select a rectangle in your example, how can I achieve that ?

Thanks :)

Resolved : I did that by storing the mouse position when it's down, so when it's up I compare the new value with the old one, if it's the same position, I fire up the click event..

jdnichollsc commented 8 years ago

If you use sprites, you can use inputs.