Clipping text?

oripessach

  • *
  • Posts: 259
I'm trying to scroll some text using a Drawing event. If I understand correctly, the drawing API can only draw on top of all other layers. This is unfortunate, because I want the text to draw behind some on-screen elements (buttons and other UI elements.)

If this is not feasible, I would at least like to limit drawing to a rectangular area of the screen, but I don't see an obvious way to do that, either. Is there a way to erase a rectangle, even? I could use that to fake clipping to an area of the screen, if I had that...

How can this be done?

Thanks!

oripessach

  • *
  • Posts: 259
Figured it out. I'm drawing the text to an image that's attached to a layer in the scene that's behind the UI.