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_mirror()</b> c_exam14 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OBJ_MIRROR()                                                        C_EXAM14
   Reflects an object.

   Syntax
         nIndex = OBJ_MIRROR(nIndex,nX,nY,nType)

   Arguments
         nIndex      Object number.
         nX          Horizontal reflection point.
         nY          Vertical reflection point.
         nType       Reflection type.
                               0 - Reflection about X axis.
                                   . |
                                   --+--
                                   . |
                               1 - Reflection about Y axis.
                                   . | .
                                   --+--
                                     |
                               2 - Reflection across origin.
                                   . |
                                   --+--
                                     | .
                               3 - Reflection with 90. rotation across origin.
                                   . |
                                   --+--
                                     | .
                               4 - Reflection with 90. rotation across origin.
                                     | .
                                   --+--
                                   . |

   Returns
         nIndex      Returns the Object number.

   Description
         OBJ_MIRROR() transforms an object by reflecting it in one of five
         different ways about any point on the drawing area.

   Examples

         This is a type 1 mirror.

            KEY_PRESS()
            OBJ_MIRROR(KP_ITEM_NO(),KP_SCALE_X(),KP_SCALE_Y(),1)

See Also: OBJ_ROTATE() OBJ_SCALE() OBJ_SHEAR()

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