Move text on screen

SGDK only sub forum

Moderator: Stef

Post Reply
Cristiano Sword
Posts: 19
Joined: Mon Jul 03, 2017 2:23 pm
Location: Sao Paulo -Sp

Move text on screen

Post by Cristiano Sword » Wed Sep 04, 2019 4:23 pm

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:
The Mega Drive Will Never Die In Our Hearts.

Project Leyria RPG for Sega Mega Drive / Genesis ... php?t=2728

Very interested
Posts: 696
Joined: Sat Feb 18, 2012 2:44 am

Re: Move text on screen

Post by djcouchycouch » Wed Sep 04, 2019 5:18 pm

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]

Very interested
Posts: 934
Joined: Thu Apr 10, 2008 3:03 pm

Re: Move text on screen

Post by Sik » Thu Sep 05, 2019 1:29 pm

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.
Sik is pronounced as "seek", not as "sick".

Post Reply