I've been working on a 2D level editor for my game, and I've encountered a problem when making the background sprite. It needs to scroll, so it's much bigger than the actual viewport and therefore ends up covering up parts of the GUI. Most of the GUI is drawn before the actual editor, as the editor itself is just a sub-panel of the GUI and drawn last.
So I need to clip the background sprite to the viewport. I've found the command dbSetSpriteTextureCoordinates() but I haven't been able to figure out how to make it work for this.
Has anyone got any ideas?
"everyone forgets a semi-colon sometimes." - Phaelax