1. Is there a way to print Text over sprites as they move around? If so how?
2. Is there collision between background tiles and sprites? If so, how? (Please include screen shots)
Not only X and Y,Petitcom 3D has position "Z" between 1024 and -256.
*Text - [LOCATE X,Y] or [LOCATE X,Y,Z].
*Graphic - [GPRIO Z] togather.
*Sprite - After [SPOFS S,] or [SPANIM S,"XY",],same to LOCATE.
*BG - After [BGOFS L,] or [BGANIM L,"XY",],same to LOCATE.
Could you refer to the codes in DKW3EVKV? Please download it asap because I'll keep it on the cloud server temporarily.
In my method, texts are printed(drawn) as a sprite to move smoothly as main sprite move around.
I recommend you to use BGCOORD and BGGET in order to detect collision between BG tiles and sprite.
I'm sorry I cannot attach screen shots here because of region lock.
Answer 1: Advice: Replace:
LOCATE 5,7
PRINT "HELLO WORLD!"
with
GPUTCHR 5*8,7*8,"HELLO WORLD!"
It is literally the exact same graphics wise, but it draws it on a graphics page with z being 513
So make a Sprite with offset anything lower than 513 and it will show up above the text