LoginLogin

How do I put text over sprites?

Root / Programming Questions / [.]

ResetReloadCreated:
I need the text for dialogue, obviously, but they're always beneath the sprites and background. Is there a layer I can put the text on so it shows above or do I use letter sprites?

There are two ways: 1- Put the text over the sprites using: LOCATE (x),(y),-10 2- Put the sprites behind the text using: SPOFS (def),(x),(y),10

Ah, I should have guessed that but I never use 3D. Actually, I should - it'd make things look cooler. Thanks! =)

Does that only work with LOCATE? GPUTCHR doesn't seem to be affected by 3D.

When drawing on the graphics page use: GPRIO -10

Thanks a tonne! =)

About the Z axis, you can move things in small increments if you don't want them to appear in 3D. You can also use an XSCREEN 2D mode to prevent unintended 3D effects from showing.

oh thanks, I was wondering what to use with gputchr

Huh, neat. I definitely wish I had known this earlier lol.

same, would have been really nice and fixed EVERLAST

To know things, a resource is right there in SmileBasic help.