This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
// script for room: Player enters screen (before fadein)
string HPDISP;
StrFormat (HPDISP, "%d", HP);
}
function room_e() {
// script for room: Repeatedly execute
SetLabelText(4, 0, HPDISP);
}
function room_f() {
}
function room_i() {
// script for room: First time player enters screen
HP=100;
}
QuoteInterface text
You can easily display static text on interfaces. For example, the Sierra-style interface displays the score in the status bar.
To add text to a GUI, you add a label. Click the "Add label" button, then drag out a rectangle like you did when adding a button. You can change the text displayed in the label by editing the "Text" property. Notice that the text automatically wraps round to fit inside the rectangle you drew.
As well as typing normal text into the label, you can add some special markers which allow the text to change during the game. The following tokens will be replaced with the relevant values in the game:
@GAMENAME@Ã, Ã, The game's name, specified on the Game Settings pane
@OVERHOTSPOT@ Name of the hotspot which the cursor is over
@SCORE@Ã, Ã, Ã, Ã, The player's current score
@SCORETEXT@Ã, Ã, The text "Score: X of XX" with the relevant numbers filled in.
@TOTALSCORE@Ã, The maximum possible score, specified on the Game Settings pane
Example: You have @SCORE@ out of @TOTALSCORE@ points.
The Properties window also allows you to align the text to left, right or centre, as well as change its font and colour.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.282 seconds with 15 queries.