Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / custom text functions

Author
Message
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 2nd Apr 2003 06:21 Edited at: 2nd Apr 2003 06:22
ok so i wrote some functions that will display strings using my bitmap font i have loaded into memory and some coordinates passed to the function

the code works perfectly in my test program but when i use it in my game it seems to do nothing

heres how i call the function from my game

300.0 being the test x and y coords im using (so that i know for sure that x and y are on the screen)

heres the code for the function

function showfonts(string$,x#,y#)
s = 1
for i = 1 to len(string$)
image = asc(mid$(string$,i))-96
if asc(mid$(string$,i)) = 32 then image = 30
if image<0 then image = asc(mid$(string$,i))-9
if mid$(string$,i) = "+" then image = 27
if mid$(string$,i) = "-" then image = 28
print asc(mid$(string$,i))
paste image image+60000,x#+((i-1)*10),y#
next i
endfunction
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 2nd Apr 2003 06:24
nevermind everyone
i just figured out that i forgot the array index number for showitemdescrip$

stupid stupid stupid me

after 2 days of hair pulling...

Login to post a reply

Server time is: 2024-11-24 09:00:24
Your offset time is: 2024-11-24 09:00:24