GenGrowText text, growToX, growToY, msDuration


The text to grow (scale).


This is the X scale to grow to. Values are 0.0 - 1.0+


This is the Y scale to grow to. Values are 0.0 - 1.0+


This is the duration of the grow in milliseconds.

This command can be used to "grow" (scale) a text. Texts can grow smaller or bigger. The scaling begins with the current text scale and grows the text to the specified X and Y scale. The whole scaling event is timed to take msDuration milliseconds. This command can be made to call a user defined Event subroutine upon completion.

include "Game Engine"

'...Turn on the game engine and init a text...

SetOnGenTextModifierSub text, onTextModifier()

GenGrowText text, 1.5, 1.5, 5000

'...continue with program...

Sub onTextModifier(text, type)

if type = Mod_Grow_Complete then

GenSetTextRed text, rnd(100)
GenSetTextGreen text, rnd(100)
GenSetTextBlue text, rnd(100)


End Sub


Game Engine Overview

Become a Patron