Jump to content

How to update size of drawRect


miguelgazela
 Share

Recommended Posts

Well, if clearing and then redrawing would satisfy you, then you may actually use clear() on the graphics object.

bar = game.add.graphics(10, 10);bar.drawRect(0, 0, 100, 20);...bar.clear();bar.drawRect(0, 0, health, 100);

Or am I missing something?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...