I'm trying to create a map that is an array of holes with digletts that appear (seemingly) at random out of different holes for various amounts of time. If a player steps in a hole when there is no diglett, I want the player to fall down the hole and pop out a different one (managed that). If the player touches a hole when a diglett is present, I want to initiate a battle or flip a switch or something (also got that).
To set this up I'm using a transfer and move route event on touch for each hole, 3 diglett events that start off screen, and a "master event" that controls the whole thing. The master event is a parallel process event (when puzzle is active) that is a looping series of "Set Event Location: switch with [x] event." It works perfectly when the player is standing still, but when the player moves, the digletts begin to slide around the map maintaining the same distance from the player when I just want them to stay in the spot they transferred to until it's time to move again.
Any thoughts on why I've got weird sliding events after "Set Event Location" events? Is there a better way to achieve this "Whack-a-Mole" type mini-game? Note this is for the game jam, so if anybody wants to help with events similar to this, I've got 3 open spots on my team for scripters, eventers, and/or artists that are better at this than me.
To set this up I'm using a transfer and move route event on touch for each hole, 3 diglett events that start off screen, and a "master event" that controls the whole thing. The master event is a parallel process event (when puzzle is active) that is a looping series of "Set Event Location: switch with [x] event." It works perfectly when the player is standing still, but when the player moves, the digletts begin to slide around the map maintaining the same distance from the player when I just want them to stay in the spot they transferred to until it's time to move again.
Any thoughts on why I've got weird sliding events after "Set Event Location" events? Is there a better way to achieve this "Whack-a-Mole" type mini-game? Note this is for the game jam, so if anybody wants to help with events similar to this, I've got 3 open spots on my team for scripters, eventers, and/or artists that are better at this than me.