K1978 Posted June 27, 2016 Share Posted June 27, 2016 Hi, I am starting out with pixi.js, it looks super cool! Although, I could need some advice. I am creating a board game with this board layout: It should be possible to tap to place your units inside the "home" positions to the left and right. The ones that take up twice the vertical space of a square in the middle of a square in the corners of a square in the middle of the top/bottom and left/right side lines around a square What way would you use to define all these click areas? Should I go for invisible sprites that still handles clicks? Or is there a better way? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 27, 2016 Share Posted June 27, 2016 Sprites with alpha=0 or renderable=false, specify hitArea as a shape (Rectangle, Polygon, Circle) 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.