So i have a minigame, and in that minigame there are some events that must always be visible to the user. Let's call those "A". The map's width is large, so i have some transparent events which, when the player touches, force the "A" to jump in focus again. If the player goes back, other events force the "A" to jump to their previous place.
This works perfectly unless you try to use the mouse. When you click somewhere, the player goes towards that square, but if they touch an event - even if the event doesn't do anything (due to conditions not being met) - the player stops in place and awaits a new input.
So i thought there must be some function that stops the player's movement when the event is triggered. So i then thought i could simply negate that when the minigame starts, and re-enable it when the minigame ends - since the minigame doesn't contain any other player touch events.
No matter how much i searched through the .js files i couldn't find (or couldn't understand) the function responsible for this. I'm a junior in JS so it might be in front of me, but i can't see it.
Can someone help?