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 / bmp font plugin

Author
Message
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Apr 2010 21:27
Hello guys,
i`m using bmp font plugin from Program Anouncment plugins thread.
It have 2 commands only and it`s very useful for showing text, but not that good when comes to typing.Everytime there is keypress that isn`t responding to writable button like "Tab" or "Enter" it returns error that the image doesent exist.

This is my code.If someone can think about workaround solution.


I`m using deffault font provided with the plugin.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 18th Apr 2010 04:52
It probably splits the font image up and assigns each character an image number based on its ASCII value. Therefore, any character that isn't accounted for would cause the error.

Try filtering out any non-supported characters first (not tested):

luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Apr 2010 13:57 Edited at: 18th Apr 2010 14:16
It works now but moreo important i want to know how we know ASCII character range is exactly 32 to 126 for writable characters?
I suppose there is some table?

Where there is a will, there is a way.
I often edit my posts, that`s who i am
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Apr 2010 15:07 Edited at: 18th Apr 2010 15:09
Yes there is.

http://www.asciitable.com/

But you can always use the ASC() function something like this.



TDK

luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Apr 2010 17:23
Everything is clear now.Thanks a lot for help!

Where there is a will, there is a way.
I often edit my posts, that`s who i am
The Slayer
Forum Vice President
14
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 19th Apr 2010 20:25
@Luskos:

You mentioned this bmp font plugin in the program announcements thread, but when I click the link, I get error 403. Did it work for you? And when did you download it? Because the thread is a couple of years old...

Cheers

Slayer rules!!! Yeaaah, man!
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 21st Apr 2010 00:41
http://forum.thegamecreators.com/?m=forum_view&t=92836&b=5
This is the thread and the plugin is on "B" the first one.
And yes link work fine with me.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
The Slayer
Forum Vice President
14
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 21st Apr 2010 19:32
Thanks luskos, that helped a lot!

Cheers

Slayer rules!!! Yeaaah, man!

Login to post a reply

Server time is: 2024-09-28 16:37:46
Your offset time is: 2024-09-28 16:37:46