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.

2D All the way! / Bitmap Font

Author
Message
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 4th May 2009 20:33
Hey i have a problem with the plugin:
http://forum.thegamecreators.com/?m=forum_view&t=120799&b=4

i've set the code on first position (just for the test)



in a complete new project this is working.
But in my project it's not.

"Runtime Error 302 [Sprite does not exist] at line 7" -> c_pastefont "BITMAPFONTPLUGIN",50,200,255

? why?
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 5th May 2009 12:22
When you load the font, What are the parameters? - looks to me like your missing the image ID, I imagine you'd need to specify the image when loading and when pasting the font.


Health, Ammo, and bacon and eggs!
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 5th May 2009 17:20
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 5th May 2009 19:37
But that's not the parameters for c_loadfont...

c_loadfont "1.bmp",1,32,25,320

This is from the example, as you can see there's a parameter before the width, probably an image number. Try adding that and see if that fixes it.


Health, Ammo, and bacon and eggs!
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 6th May 2009 19:15 Edited at: 6th May 2009 19:20
I don't know other parameters, nothing in the readme.

Nothing is working.

E// Nah, got it. I'm stupid. forgot this:

Login to post a reply

Server time is: 2024-03-28 21:21:13
Your offset time is: 2024-03-28 21:21:13