Page 1 of 1

Move text on screen

Posted: Wed Sep 04, 2019 4:23 pm
by Cristiano Sword
Hello guys, I have a problem.
I need the text that appears on the screen to move in pixels, not tiles. The goal is to show the damage dealt to an enemy and make the damage number move up in pixels.
I can't understand yet how sgdk treats strings, but by VDP_drawtext () I can only draw with parameters x and y in tiles. Does anyone have any idea how I can do this?
Example image:
Image

Re: Move text on screen

Posted: Wed Sep 04, 2019 5:18 pm
by djcouchycouch
Seems to me the damage text will have to be done as sprites. Typically, a digit (0 - 9) as one sprite.
Use multiple sprites to show your number. [1][3][8]

Re: Move text on screen

Posted: Thu Sep 05, 2019 1:29 pm
by Sik
Yeah, RPGs do this by using sprites. Not worth trying to use the planes when it's a small graphic and gives more flexibility for the animation.