cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

UI.Button using sprite sheet is reseted frame when using click listener #164

Open dxtrung188 opened 9 years ago

dxtrung188 commented 9 years ago

I have a sprite sheet is a desk of cards. So I create a button using this sprite sheet with chosen frame. When I click into button, the frame is auto set to the first frame. Anybody can help me?

Another problem, I can create a click listener for a sprite. Do you know why?

Thanks you very much.