FOLLOW TRAIL (VX ACE)

RPG Maker VX Ace

A script allowing events to follow the player's movements exactly.

  • Joy-less
  • 09/07/2022 06:19 PM
  • 2320 views
Summary
This script allows chasing events to follow the player's trail exactly, including diagonal movement and jumping.
GitHub repository

Usage
  • event.follow_player_movement - Follow the player's trail

  • event.watch_player_movement - Start recording the player's movement


watch_player_movement is only necessary if follow_player_movement is called after the player starts moving, for example an event that waits a bit before chasing.

Terms of Use
You are permitted to use this script for commercial purposes. Please give credit.

Posts

Pages: 1
OzzyTheOne
Future Ruler of Gam Mak
4696
Hey there! This seems to be a very nice little script, however it displays some odd behaviours, I'm not sure if I'm just using it incorrectly or if it's bugs in the code. If I just use event.follow_player_movement as a parallel process, the event doesn't chase the player, it just immitates the player's movements exactly. As for how to use event.watch_player_movement, yeah, I've tried to use it but it just displays some very odd behaviour. Could you perhaps explain with some examples how to use these two commands properly?


Example of odd behaviour with event.watch_player_movement, I set an event to parallel process to "watch" the player's movements, then, at a later point, I have this event set to event.follow_player_movement on parallel process and the event does follow the path the player walked, but it skips from square to square instead of properly walking along the path.
Here's a visual example as to what happens:
author=OzzyTheOne
Hey there! This seems to be a very nice little script, however it displays some odd behaviours, I'm not sure if I'm just using it incorrectly or if it's bugs in the code. If I just use event.follow_player_movement as a parallel process, the event doesn't chase the player, it just immitates the player's movements exactly. As for how to use event.watch_player_movement, yeah, I've tried to use it but it just displays some very odd behaviour. Could you perhaps explain with some examples how to use these two commands properly?


Example of odd behaviour with event.watch_player_movement, I set an event to parallel process to "watch" the player's movements, then, at a later point, I have this event set to event.follow_player_movement on parallel process and the event does follow the path the player walked, but it skips from square to square instead of properly walking along the path.
Here's a visual example as to what happens:


I haven't tested the script yet, but isn't the purpose of the script to exactly imitate the player's movement? I haven't looked deep into it yet, so sorry if I have mistaken your point xD

Anyway, this looks like an extremely interesting script, maybe you could make some nice puzzles with it.
OzzyTheOne
Future Ruler of Gam Mak
4696
author=Ebanyle
author=OzzyTheOne
Hey there! This seems to be a very nice little script, however it displays some odd behaviours, I'm not sure if I'm just using it incorrectly or if it's bugs in the code. If I just use event.follow_player_movement as a parallel process, the event doesn't chase the player, it just immitates the player's movements exactly. As for how to use event.watch_player_movement, yeah, I've tried to use it but it just displays some very odd behaviour. Could you perhaps explain with some examples how to use these two commands properly?


Example of odd behaviour with event.watch_player_movement, I set an event to parallel process to "watch" the player's movements, then, at a later point, I have this event set to event.follow_player_movement on parallel process and the event does follow the path the player walked, but it skips from square to square instead of properly walking along the path.
Here's a visual example as to what happens:
I haven't tested the script yet, but isn't the purpose of the script to exactly imitate the player's movement? I haven't looked deep into it yet, so sorry if I have mistaken your point xD

Anyway, this looks like an extremely interesting script, maybe you could make some nice puzzles with it.


I am aware that it's also supposed to imitate the player's movement, but even getting that to work needed some testing as I faced some weird bugs. Which I am uncertain if it's just me using it badly, or it being not very obvious.
Pages: 1