skywalker Posted March 13, 2015 Report Share Posted March 13, 2015 im trying to make a circle button with tap event i used hitArea property from sprite class and using pixi Circle class i did that this.sprite = game.add.sprite(50,50,"cursors");this.sprite.anchor.set(0.5,0.5);this.sprite.hitArea = new PIXI.Circle(50,50,84);this.sprite.inputEnabled = true;this.sprite.events.onInputDown.add(function(){console.log("clicked");});}; it is not working at all so i tried removing this.sprite.anchor.set(0.5,0.5);input is work fine when there is no hit Area so what should i donote : phaser version is 2.2.2 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.