Game Play

Moving Around

Downloadmotion_towards(speed,x,y)   Place in Step Event to move the calling instance towards a point, navigating around solid obstacles. Downloadmove_bounce_rectangle(x1,y1,x2,y2)   If the bounding box of the calling instance crosses the boundary of the given rectangle, bounce the instance in the opposite direction. Downloadmove_follow(object,speed)   Place in Step Event to makes the calling instance move to follow an object or instance at a given speed. Downloadmove_to_line(x1,y1,x2,y2,segment)   Moves current instance to the nearest point on given line or line segment. Downloadmove_to_mouse()   Moves the calling instance to the position of the mouse. Downloadturn_toward_direction(direction,turnspeed)   Rotates the calling instance toward a desired direction by a given number of degrees.

Comments? Click to Comment