Ok, so far I can post text up on the screen in my game with a bitmap,here is my code.
What I want to do is post my health from my bitmap,is there a way to add my health to the bit map with numbers,then display the bit map image with my health.
player(1).PHEALTH //this is what I need to print from the bitmap and not in real numbers.
load bitmap "texturebank\huds\hud1.png",1
` Get images
CImage=132 ` Set the starting image number
for y=0 to 125 step 25
for x=0 to 290 step 32
` Grab each character
get image CImage,x,y,x+32,y+25
` Go to next image number
inc CImage
next x
next y
` Change to the main view
set current bitmap 0
do
set cursor 250,60
INK 255,5
PRINT "";player(1).PHEALTH
WriteText(50,60,"HEALTH") //I need this to print my health
sync
loop
function WriteText(x,y,Tex$)
` Go through each character of Tex$
for t=1 to len(Tex$)
` Get the ASCII value of the current character and add 100
a=asc(mid$(Tex$,t))+100
` Show the characters image
paste image a,x,y
` Space over for next letter
inc x,32
next t
endfunction
my signature keeps being erased by a mod So this is my new signature.