So I was making my game and you can hit a button to make the character dash using
a move route. the dash is supposed to be able to break blocks. Like I wan't to know if theres
a way to activate a if "touching event" trigger while the player is touching it in a move route...
NOTE: this event works if the player is just touching it using the keyboard...
You could activate a switch before the move route, then check if the switch is ON on your boulder event. If the switch is ON, break the boulder, else do nothing. Make sure you turn off the Switch at the end of the route.
Well of course it would because your block is not passable, I thought your problem was that it always activates instead of just when using the move route because of your note...
One way to go around this is instead of the touch event being in the boulder itself, put it one tile away from the boulder, then break the boulder from that event
If putting it one tile away doesnt work, you could also opt to have a parallel process checking the position of the player itself that runs when the switch is ON.
Event triggers do not work when the player runs into an event due to a move route.
You would need to have a script mod to do the same check during a move route that is done when the player uses the keyboard, or as above, use a parallel process that's active while the player is dashing, that checks the player's and event's position.
If you want the first option (script mod), post a thread in the RGSS3 Script Requests forum. But you'll need to state what should happen with the move route if the event triggers - does it pause while the event is running? - does the player continue to move? - what if the event does a Set Move Route on the player (there can only be one move route, so it would have to be ignored, or would have to overwrite the in-progress move route which would then be lost and could not continue).
If you do not want to go the script way you can fake a player touch using regions. If you use a different region ID for the tile before the boulder you can have a parallel process event break the boulder when the player steps in a tile with the said region ID.
This does not use any player touch but it works in a similar way. Another way to do it is to use a second event page for the boulder that activates once you turn on the switch and just compare player coordinates with event coordinates using a parallel process event. It goes without saying that the boulder page should have ''through'' on while your parallel process should also activate only when the said switch is on.
The first method breaks the boulder as soon as the player steps close to it so you should use some sort of animation or it will look weird, the second one breaks the boulder as soon as the player steps on it and it is more like a player touch.