The Daily Click ::. Forums ::. Klik Coding Help ::. Dialog Boxes?
 

Post Reply  Post Oekaki 
 

Posted By Message

traugott.simon



Registered
  23/08/2008
Points
  91
4th September, 2008 at 23:13:41 -

Hi

i want to add dialogboxes to my game to tell the story.

Of course, this should`nt be the ugly boxes of windows, they should be custom.

I have never worked with the several text or string objects, i really have no idea how to use them. I need to find a way to load the text out of a file into the textbox. But then i have the problem, that everybody could read the dialogs before even playing the game.

Witch object should i use and how does it work?




 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
6th September, 2008 at 04:30:56 -

You could just the active object and a text string. Or combine the active object with a text blitter for nicer effect. You could get text blitter from one of the MMF2 bonus packs on the Clickteam website, if you don't have it already.

Basically, you just use an active as the background. Then move the text blitter on top of it. Then just type in whatever text you want it to have. Use some other active objects as buttons, if you want.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
6th September, 2008 at 12:33:19 -

I'd suggest using the "string" object to store all your text. You can set each "paragraph" to be the contents of one dialog box. All the text can be entered from MMFs frame editor, and is stored internally so players can't tamper with it. If you *must* store the text as an external file, then you can use an encryption extension such as "blowfish" to make it unreadable.

If you want the actual visible text to look better, you can use the text-blitter extension like Muz said - this let's you use bitmap fonts, but it's quite complicated. I'd also consider some sort of text effect such as scrolling, "type-writer" etc, but only if it's going to fit with your game. Text-blitter can help with this too (see the example files).


 
n/a

traugott.simon



Registered
  23/08/2008
Points
  91
7th September, 2008 at 02:13:19 -

Hello guys,

that helped me alot for my first try, now i know how to start.

To make the text look better: is it possible to include a special font in the game that i want to use, so every pc can use it?

I dont want the players to manually install the font before playing the game.


 
n/a

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
7th September, 2008 at 03:22:01 -

The text blitter object lets you use your own custom bitmap fonts, but they have to be monospace (well there are workarounds but they are kinda... long).

 
Image
http://bfollington.tumblr.com

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
7th September, 2008 at 05:34:12 -


Originally Posted by traugott.simon
Hello guys,

that helped me alot for my first try, now i know how to start.

To make the text look better: is it possible to include a special font in the game that i want to use, so every pc can use it?

I dont want the players to manually install the font before playing the game.


Yup, text blitter. Looks cooler than normal font.

Or if you want to use a Windows font, you'll have to include it with the game.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

traugott.simon



Registered
  23/08/2008
Points
  91
7th September, 2008 at 23:54:03 -

"Or if you want to use a Windows font, you'll have to include it with the game"


Yeah thats what i want
But how do i do this?

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
8th September, 2008 at 00:45:38 -

if your using a crazy font its normally not a good idea to use the string object. Your best bet is to stick with the main fonts, that way evryone has them already.

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
8th September, 2008 at 05:25:06 -

It would probably involve installers or installing fonts at least (which players hate), so I can't tell you Yeah, like Antworx said, most of the time it won't make the game look better anyway.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

aphant



Registered
  18/05/2008
Points
  1242
8th September, 2008 at 09:25:06 -

Using a normal font is also better because it's probably easier to read than what you'd add.

 

traugott.simon



Registered
  23/08/2008
Points
  91
8th September, 2008 at 18:37:28 -

I tried some things and it looked good to me, so the build in fonts will work

Thanks for your help

 
n/a
   

Post Reply



 



Advertisement

Worth A Click