Jump to content

How to do a click callback on a sprite?


Recommended Posts

I would like to create a tween on a sprite that occurs when the player clicks on it.  


I have enabled input and drag on the sprite, but now I would like to add a callback function that performs the tween.

sym_cloud_blue.inputEnabled = true;sym_cloud_blue.input.enableDrag();                
Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...