Is there a way to make it so that lines and text don't overlap sprites?

    altZany In the text function, you can specify a width as the fourth argument:

    text("text", x, y, width);

    Text will attempt to wrap after width pixels. You can also specify a height as the fifth argument.

    altZany As in, the line function? You can simply call that function before drawSprites(). Of course, if you're using a background as a sprite, then it won't work...

    I won't be able to help much with the lines part unless I'm able to see what you're working on.

      7 days later

      [WUT] Adam Yeah, drawSprites() draws all sprites to the screen, if you want text sandwiched between sprites, you can use drawSprites(beforeGroup) on a group of all sprites behind the text, then draw the text, then drawSprites(afterGroup) on a group of all the sprites after the text.

      Chat