The purpose of this plugin is to provide helpers to facilitate objects movements in a 2d topdown game.
- Manage multiple movements for an object by priority.
- Handle usage of a
Navigation2D
for pathfinding - Handle "smooth" rotation of objects
- Provide helper functions to create you own movements
- Add a Movement Manager at the root of your moving node (attach
movement_manager.gd
script to it.) - Add movmement owners as children of the movement manager node (script inheriting from
MovementOwner
class).
Below an example of usage on a KinematicBody2D using the provided Patrol and FollowClick classes:
Below the result:
- The player use the default Patrol node to patrol between points (note the rotation)
- When the user clicks, the player goes to the click position
- The player goes back to patrolling.