Font Change

EagleWing
Silly question - I want the Intro text to be in a different font to the default as defined in the game properties. I've tried
define text <intro>
font <arial> |iYou have heard a rumour that there is a single copy of the long-lost, original, |crAdventure Game|cb somewhere in an old factory building in Coalville, Leicestershire. You have managed to track down some more information and you are now standing outside the old factory where you think the lost software might be.|xi font
end define

which doesn't work.

Any suggestions will be gratefully received.

Frank

I think Im Dead
I'm going to guess without looking it up that the define text blocks will only allow text and text formatting syntax or something along those lines. A way around this would be to use the startscript section in your game definition to DO a procedure called intro text or something along those lines.

Then just make the procedure look something like you already had.

EagleWing
Thank you! Yes, you'd got the right idea. I used the QDK and the resulting code put this into the startscript.

font <Times New Roman>
displaytext <intro>
font <>


It does exactly what I wanted it to.

For the benefit of anyone else needing to know - in the QDK:
[list]1 Click on Game - properties - script
2 Edit "When the game starts"
3 Add command - Print - change the font.
4 Give the name of the font - click OK
5 Add command - print - display a text block
6 Choose from drop down - intro/win/lose - click Ok
7 If you wish to return to default font repeat items 3 & 4 but leave font blank[/list:u]

Frank

EagleWing
:cry: AAAAaaaaaaaaaaaaaaaaaaagh!! :cry:
I just said

It does exactly what I wanted it to.



No it doesn't!!

It gives me the intro text in the new font -- but then it gives it to me again in the default text!
:cry: :evil: :cry:

Frank

Alex
Add the "nointro" script command to your startscript.

EagleWing
:D Alex said

Add the "nointro" script command to your startscript.



Brief and to the point and, of course, it did exactly what I needed. Thank you Alex.

I didn't see any way of doing that from the QDK. Did I miss something or does that have to be done "by hand"?

Frank

Alex
There's no obvious way of doing it from QDK - you'd have to go to "Other script command" and enter "nointro" there.

EagleWing
Alex said

There's no obvious way of doing it from QDK.



:P Thank goodness for that - I was beginning to think it was me! :D

Frank

007bond
I was just wondering: can you put in text formatting anywhere where you can enter texr (like text blocks), or does it only work in script commands?

Alex
You can put formatting commands anywhere, including text blocks.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums