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:
Move text on screen
Moderator: Stef
-
- Interested
- Posts: 19
- Joined: Mon Jul 03, 2017 2:23 pm
- Location: Sao Paulo -Sp
- Contact:
Move text on screen
The Mega Drive Will Never Die In Our Hearts.
Project Leyria RPG for Sega Mega Drive / Genesis
https://gendev.spritesmind.net/forum/vi ... php?t=2728
Project Leyria RPG for Sega Mega Drive / Genesis
https://gendev.spritesmind.net/forum/vi ... php?t=2728
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
Re: Move text on screen
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]
Use multiple sprites to show your number. [1][3][8]
Re: Move text on screen
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".