GenGrowText


GenGrowText text, growToX, growToY, msDuration

text

The text to grow (scale).

growToX

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

growToY

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

msDuration

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 Constants.inc"

'...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)

endif

End Sub




SetOnGenTextModifierSub


Game Engine Overview






Become a Patron