Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>obj_scale()</b> c_exam14 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OBJ_SCALE()                                                         C_EXAM14
   Changes the size of an object.

   Syntax
         nIndex = OBJ_SCALE(nIndex,nX,xY,nExpandHorz,nExpandVert)

   Arguments
         nIndex      Object number.
         nX          X point to scale about.
         nY          Y point to scale about.
         nExpandHorz Horizontal expansion multiplier.
         nExpandVert Vertical expansion multiplier.

   Returns
         nIndex      Returns object number.

   Description
         OBJ_SCALE() scales an object larger or smaller by a factor of
         nExpandHorz in the horizontal direction and nExpandVert in the
         vertical direction. For example, a factor of 2 would double the
         image's size, while a factor of 0.5 would decrease its size in half.
         The object is expanded from a point nX,nY.

         If the object number is not in the drawing, a 0 is returned.

See Also: OBJ_MIRROR() OBJ_ROTATE() OBJ_SHEAR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson