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.

AppGameKit Classic Chat / how to print the text?

Author
Message
metamorpho
2
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Planet Earth
Posted: 17th Apr 2019 16:39
code on Basic Blitz3D:
For ly=0 To 16
For lx=0 To 19
desa=map_fon(lx,ly)
DrawText desa,lx*64,ly*64,1,1
Next
Next

help on AppGameKit than replace DrawText desa,lx*64,ly*64,1,1
have tried CreateText(1,Str(desa)) gives an error message

fubarpk
Moderator
14
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 17th Apr 2019 17:13
If you want to use a font you have to have a copy of the font in the media folder
and use LoadFont ( iFontID, szFontFile ) and then SetTextFont ( iTextIndex, iFontID )
but if you have a bitmap font(ie one you made in a paint program) you have to use
the sprite commands
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
metamorpho
2
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Planet Earth
Posted: 17th Apr 2019 17:22
The problem is not in the font.
I do not understand how this example correctly use the command CreateText
smallg
Valued Member
13
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 17th Apr 2019 18:47
more like this
life's one big game
spec= i5 4ghz, 16gb ram, Nvidia 1070ti gpu
metamorpho
2
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Planet Earth
Posted: 17th Apr 2019 19:08
smallg, thank you !!

Login to post a reply

Server time is: 2019-05-22 06:33:48
Your offset time is: 2019-05-22 06:33:48