Legomite Posted August 13, 2014 Share Posted August 13, 2014 What exactly is all the events in panda? I'm running click and mousedown on mobile, and it won't respond! I used these code from the screen cast.sprite.click = function() { sprite.visible = false; }; sprite.mousedown = function() { sprite.scale.set(0.8, 0.8); }; Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 13, 2014 Share Posted August 13, 2014 Hi Legomite Try this .... sprite.click = sprite.tap = function() {sprite.visible = false;} This way it will work for both click and tap! Hope this helps Quote Link to comment Share on other sites More sharing options...
Legomite Posted August 14, 2014 Author Share Posted August 14, 2014 Hi Legomite Try this .... sprite.click = sprite.tap = function() {sprite.visible = false;} This way it will work for both click and tap! Hope this helps Thanks! Also what is he alternative for onmouse and off mouse? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.