David Posted December 19, 2013 Share Posted December 19, 2013 Is there a way to have a sprite that is simply a circle or rectangle? As of now, I'm trying to basically find a way to go from graphics object -> texture -> sprite. Anyone else run into this? I'm basically trying to find a way to draw primitives yet still leverage things like the collision detection.If all else fails, I could just move a blank sprite around and move the primitive around with it. Link to comment Share on other sites More sharing options...
rich Posted December 19, 2013 Share Posted December 19, 2013 This is what the BitmapData class is for - for creating 'primitive' style textures that any Sprite can use. It's still an experimental class, but at the very least you can access the canvas context and draw whatever you like to it, then apply it to 1+ sprites as a texture. Tanner 1 Link to comment Share on other sites More sharing options...
David Posted December 20, 2013 Author Share Posted December 20, 2013 Great. Thanks! I hadn't updated to 1.1.3 yet. I just saw that in the readme. Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts