PeterUstinox Posted August 18, 2015 Share Posted August 18, 2015 Hi!I just started out with Phaser and am trying to build a little "mouse shoot on targets" game.Those targets are just Phaser.Circle objects and i have drawn them on the canvas with graphics on the same place.The problem:since those circle objects aren't display objects (i.e. sprites) i can't add them to groups. which makes it harder for me to put mouse click handlers on them. basically everything i do feels like a huge workaround without sprites. Initially i didn't want to use sprites, because of the missing textures. i just wanted them to draw in a plain color. I saw this game http://phaser.io/news/2015/08/zerowhich looks like it doesn't use sprites either. rather geometry objects.am i wrong? do i have to have a texture for a sprite?is it insanely stupid to avoid sprites for my kind of game? Link to comment Share on other sites More sharing options...
rich Posted August 18, 2015 Share Posted August 18, 2015 You've a couple of options: 1) Use the new Create class (http://phaser.io/examples/v2/category/create) 2) Use a Graphics object to render your Circles, and then call generateTexture() on it - and use those textures for your Sprites. jdnichollsc 1 Link to comment Share on other sites More sharing options...
Tilde Posted August 18, 2015 Share Posted August 18, 2015 Woah, is that sixteen colors from the Create class the exact same sixteen I'm using for my game? Is this palette more popular than I thought? That's awesome, now I can just easily add an emblem creator and have it match the colors I'm using. Link to comment Share on other sites More sharing options...
PeterUstinox Posted August 18, 2015 Author Share Posted August 18, 2015 awesome thanks! such a huge framework! great things to discover! Link to comment Share on other sites More sharing options...
rich Posted August 19, 2015 Share Posted August 19, 2015 Woah, is that sixteen colors from the Create class the exact same sixteen I'm using for my game? Is this palette more popular than I thought? That's awesome, now I can just easily add an emblem creator and have it match the colors I'm using. Arne's 16 colour palette is pretty popular with pixel artists, yes. Tilde and drhayes 2 Link to comment Share on other sites More sharing options...
Recommended Posts