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_snapnt()</b> c_exam11,c_demo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OBJ_SNAPNT()                                               C_EXAM11,C_DEMO
   Moves a point guided by a line to a new position.

   Syntax
         nIndex = OBJ_SNAPNT(nIndex)

   Arguments
         nIndex      Object number.

   Returns
         nIndex      Returns the object number if successful, a 0 if there was
                     no object with that number or the move was cancelled, or
                     a negative of the object number if it overlaps another
                     object.

   Description
         OBJ_SNAPNT() will move a point by drawing a line from the point
         where the mouse cursor was last pressed until the operation is
         finished when the DrawButton (the default is the left mouse button,
         see CAD_SETUP()) is pressed. This type of moving function is called a
         snap because the object is not seen moving on the screen.

         If CHECK_OLAP() was set on, it will also check to see if the point
         coordinates directly overlay another of its same type. If it does,
         OBJ_SNAPNT() will return the negative of the object number snapped.

See Also: CHECK_OLAP() OBJ_COPY() OBJ_MOVE() OBJ_MOVPNT() OBJ_SNAP()

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