Font Change
EagleWing
25 Sept 2004, 16:23Silly question - I want the Intro text to be in a different font to the default as defined in the game properties. I've tried
which doesn't work.
Any suggestions will be gratefully received.
Frank
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
25 Sept 2004, 17:43I'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.
Then just make the procedure look something like you already had.
EagleWing
26 Sept 2004, 12:43Thank you! Yes, you'd got the right idea. I used the QDK and the resulting code put this into the startscript.
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
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
26 Sept 2004, 12:54

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!



Frank
Alex
26 Sept 2004, 13:06Add the "nointro" script command to your startscript.
EagleWing
26 Sept 2004, 13:32
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
26 Sept 2004, 15:32There's no obvious way of doing it from QDK - you'd have to go to "Other script command" and enter "nointro" there.
EagleWing
26 Sept 2004, 18:31Alex said
Thank goodness for that - I was beginning to think it was me!
Frank
There's no obvious way of doing it from QDK.


Frank
007bond
28 Sept 2004, 22:30I 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
29 Sept 2004, 00:06You can put formatting commands anywhere, including text blocks.