where do you add/change whole game functions?

Started by Seventeen Uncles, Mon 15/09/2014 15:05:48

Previous topic - Next topic

Seventeen Uncles

hi everyone, I know this is the beginner forum but apologies for such a silly question.

was looking for a way to extend the minimum amount of time short text displays for (ie "Hi!") and found the AGS manual entry for Game.MinimumTextDisplayTimeMs which is exactly what i need.

I cant however find out where you add or change these game-wide script funtions?

any help will be appreciated!

Thanks

Gurok

#1
Putting it in your game_start function in your GlobalScript.asc should be enough. You can add this function if you don't already have it:

Code: ags
function game_start()
{
    Game.MinimumTextDisplayTimeMs = 5000;
}


game_start gets run as soon as the game starts (before the first room is loaded).
[img]http://7d4iqnx.gif;rWRLUuw.gi

Seventeen Uncles

Quote from: Gurok on Mon 15/09/2014 15:09:00
Putting it in your game_start function in your GlobalScript.asc should be enough. You can add this function if you don't already have it:

Code: ags
function game_start()
{
    Game.MinimumTextDisplayTimeMs = 5000;
}


game_start gets run as soon as the game starts (before the first room is loaded).

ah brilliant, found it and works perfect, thanks for your help.

SMF spam blocked by CleanTalk