Scale()

Syntax:

Scale( Horizontal, Vertical, Time, Wait )

Parameters:

Horizontal – Enter a number to add to the current scale factor for the horizontal size of the specified object. The original scale factor of an object is always 1.0 (i.e. 100% of its own size), with this function the number of Horizontal is added to the scale factor. For example, if Horizontal is 0.5 then the scale factor for the specified object will be 1.5 and the horizontal size will be 150% of its original size. Horizontal can be a positive or negative number. This parameter is required.

Vertical – Enter a number to add to the current scale factor for the vertical size of the specified object (see Horizontal for more information on scale factors). Vertical can be a positive or negative number. This parameter is required.

Time – the time period in seconds. This parameter is optional. The default value is 0.0 seconds.

Wait – Wait for this script command to complete before moving to the next script command, or not to wait. Wait is either true or false. If Wait is true, the script pauses until this animation is completed before continuing to the next line of the script. If Wait is false, the script will process the next line of script immediately. This parameter is optional. The default value is true.

Remarks:

This function sets the specified Objects horizontal and vertical scale by the amount set in Horizontal and Vertical over a specified time. The Time parameter is optional.

image\Script_Button.jpgExamples