Jump to content

How to create clickable/touchable Rectangles and animate them?


Recommended Posts

I'm just getting started with Phaser & I'm struggling to figure out what the correct / best way to create clickable/touchable Rectangles is.


I created this http://note-pad.meteor.com/ with just HTML / DOM events and CSS transitions as a simple UI for what i wanted to generate in Phaser.


I want to do two things:


When the 'notepad' canvas is touched or clicked the rectangle objects go into a looping animation state, and an audio sprite is played. like in this example: http://examples.phaser.io/_site/view_full.html?d=audio&f=audio+sprite.js&t=audio%20sprite



Link to comment
Share on other sites


  • Recently Browsing   0 members

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