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.
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.
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).
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).
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.
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.
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.