help needed - paint behaviour

designpeg

  • *
  • Posts: 731
Hi i'm trying to build a painting behaviour, that is I want to be able to draw a shape with my finger, and it to remain on screen.
 
I think I understand the drawing blocks, and I don't I can use them to do this, as they redraw each after each frame.

What I need is a block that alters the pixel data of a large actors bitmap, or a texture.

Any pointers towards a solution to this would be great.

I've managed to make a list based approach - add every stroke to a list, then read the list and  redraw every frame, but this seems like a really wasteful way to do things - and will obviously bog down after a little while.