LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Is there a way to put text in front of sprites?

Root / Programming Questions / [.]

Jacklack3Created:
I need for a engine im working on! Is it possible?

Use locate x, y, -1 (whereas x and y is whatever you want) Or set the sprites' offsets to be x, y, 1 (spofs id, x, y, 1) (whereas x and y is what they would be)

Use locate x, y, -1 (whereas x and y is whatever you want) Or set the sprites' offsets to be x, y, 1 (spofs id, x, y, 1) (whereas x and y is what they would be)
Thank you! Also is there a way to make the text bigger without using new sprites?

Either use WIDTH 16, or GPUTCHR X, Y, "STRING", SCALE_X, SCALE_Y, COLOR. Note that SCALE_X or/and SCALE_Y can't have decimals. It won't do anything.

Either use WIDTH 16, or GPUTCHR X, Y, "STRING", SCALE_X, SCALE_Y, COLOR. Note that SCALE_X or/and SCALE_Y can't have decimals. It won't do anything.
Great! Thank you! Oh and is there a way to have a sprite detect if its been touched by the stylus?

Either use WIDTH 16, or GPUTCHR X, Y, "STRING", SCALE_X, SCALE_Y, COLOR. Note that SCALE_X or/and SCALE_Y can't have decimals. It won't do anything.
Great! Thank you! Oh and is there a way to have a sprite detect if its been touched by the stylus?
You could do that by comparing the coordinates of the touch to those of the sprite, or make a sprite and hide it with SPHIDE, then just check sprite collisions with the hidden sprite (which would follow your stylus.)

Either use WIDTH 16, or GPUTCHR X, Y, "STRING", SCALE_X, SCALE_Y, COLOR. Note that SCALE_X or/and SCALE_Y can't have decimals. It won't do anything.
Great! Thank you! Oh and is there a way to have a sprite detect if its been touched by the stylus?
You could do that by comparing the coordinates of the touch to those of the sprite, or make a sprite and hide it with SPHIDE, then just check sprite collisions with the hidden sprite (which would follow your stylus.)
Is it okay if you could make/show an example? I dont quite know where to start from what you said.