How to make a drawing system?

mantu

  • Posts: 6
Hey. How can I make a drawing system? I'm basically needing it to just draw erasable drawings.

Ganu

  • Posts: 224
Yo I think You could design some sort of brush by [fill a pixel at pos()] of desired size etc.
Then to erase, you could use the same brush to fill pixels with white colour to erase.
Currently waiting for joints in stencylworks.

mantu

  • Posts: 6
I'm going to have a background that's not just a single color :S

rob1221

  • *
  • Posts: 9472
Drawing individual pixels every frame will be too slow, so you'll probably have to use code to do what you want (BitmapData class).

mantu

  • Posts: 6
I used to use GameSalad and I had a system that created actors and scaled them to the distance between two different points. It wasn't very efficient but it worked. Do you think it would be the best way to do it without coding?

rob1221

  • *
  • Posts: 9472
I think that would be too slow.  If you aren't doing too much drawing, you might be fine with using a list of coordinates, drawing a small square or circle at each one.  Erasing would just remove those coordinates from the list.  No code is required for that.

mantu

  • Posts: 6
Thanks. I'll try that.