This wiki is out of date, use the continuation of this wiki instead

Size

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 18:35, 3 April 2008 (edit)
Sandman (Talk | contribs)
(New page: category:variables category:predefined category:local variables '''Up to Local Variables''' ---- == Definition == '''INT''' size Size is a predefined [...)
← Previous diff
Revision as of 18:36, 3 April 2008 (edit) (undo)
Sandman (Talk | contribs)
m (See also)
Next diff →
Line 34: Line 34:
== See also == == See also ==
-See also [[size_x]].+* [[size_x]]
-See also [[size_y]].+* [[size_y]]
{{Locals}} {{Locals}}

Revision as of 18:36, 3 April 2008

Up to Local Variables



Definition

INT size

Size is a predefined local variable that can be used to stretch or compress a graphic, equally along the horizontal axis and vertical axis. It is defined as a percentage of the original graphic size. The graphics's center will remain at the drawing coordinates when the graphic is drawn.

This variable only has effect for the appearance of a process' graphic when its local variables size_x and size_y are both [code]100[/code]. When either is not equal to [code100[/code], size doesn't affect the appearance of the graphic.

Example

To make the graphic of a process continually stretch:

Process Main()
Begin
    graph = new_map(50,50,8);   //load the graphic and assign it to the graph variable
    x = 100;     //Position the graphic 100 pixels
    y = 100;     //from the top and left of the screen
    Loop
        size += 1;    //increase the height and width of the graphic by 1 percent each frame.
        frame;
    End
OnExit
    unload_map(0,graph);
End

See also


Local variables
AngleBigbroFatherFileFlagsGraphIdRegionReservedResolutionSizeSize_xSize_ySmallbroSonXYZ
Personal tools