BixBax Posted May 11, 2014 Share Posted May 11, 2014 I am adding new sprites in timed event (game.time.events.loop).I was trying to draw a filled rectangle above these sprites. I cannot figure out how.The sprites are always displayed on top Any help?? Link to comment Share on other sites More sharing options...
XekeDeath Posted May 12, 2014 Share Posted May 12, 2014 Create a group before creating the graphics and add the sprites to the group. valueerror 1 Link to comment Share on other sites More sharing options...
valueerror Posted May 12, 2014 Share Posted May 12, 2014 this seems to be a very good approach.. otherwise you would have to call filledrectangle.bringToTop(); every time you draw a new sprite (given they are in the same parent group (world)) Link to comment Share on other sites More sharing options...
Recommended Posts