Smooth Tile Movement

by Woo
Smooth, beautiful tile-based movement. Perfect for classic RPGs. Includes a variable for an alternate speed when holding Shift.
Smooth Tile Movement
v 2.0

Smooth, beautiful tile-based movement. Perfect for classic RPGs!

Now kids can play tag, and grown-ups can wander around, while shopkeepers stay behind the counter!

Added the move_pattern variable, which can be "fixed", "random", or "custom". This is very useful for defining movement for non-player mobs, or for controlling player mobs during cutscenes. To activate the move pattern, call the atom's MovePattern() proc, as shown in the demo.
  • "fixed" means the mob stands still.
  • "random" makes the mob step one tile in a random direction.
  • "custom" makes the mob follow the move route defined by its move_route variable, which a text string containing any number of the characters N, E, S, or W to define the order of the mob's steps. The move_route variable can be defined in the code, or it can be defined individually for each mob placed on the map, as shown for the kids playing tag in the demo.
    • The move_route_skip variable determines whether the mob skips a step in its move route if the step fails (due to something being in the way), and is FALSE by default.
    • The move_route_repeat variable determines whether the mob repeats its custom move route after it is finished, and is TRUE by default.

If you enjoy this library, consider becoming a patron to help me develop it further!

Tyruswoo BYOND Patreon