Jump to content

Drawing Lines


farzher
 Share

Recommended Posts

I have one of these things

@pathGraphic = @add.graphics 0, 0

And I drew lines on it

@pathGraphic.lineStyle 1, 0xddd000, [email protected] 2, [email protected] 22, 55

I need to clear it out and draw new lines on it. How do I do that? I don't want to delete it and create a new one, that's probably a waste of memory. Am I using the right thing to be drawing lines?
Most of the methods I'm using aren't even in the documentation for Graphics http://docs.phaser.io/Phaser.Graphics.html
Why is that?

 

(Sorry for the code not being Javascript, but I think you get the point)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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