In my game, I want to have a feature where pressing a button will cause the character to walk slower. It will be used to help avoid attracting enemies (which are just sprites on the map, not troops). What I need is a script that will 1.) lower the walking speed when a button is pressed or held, and 2.) cause all the sprites on a map to start approaching the player when they aren't walking slow, but continue to approach them if they try to walk slow again. Basically, a "don't move fast or you'll get caught" kind of thing.
I realize the complexity of this script is a lot to ask for, but unfortunately, despite my experience with the maker, I have no idea how to do something like this. For the movement speed, I know that you can change it by using Set Move Route, but unfortunately, I don't know how to map this to a button. I attempted using a Conditional Branch with a button press, but that didn't work. As for the "all sprites approach, etc.," I have no idea how to even start that. Any help would be fine.
Thank you!
I realize the complexity of this script is a lot to ask for, but unfortunately, despite my experience with the maker, I have no idea how to do something like this. For the movement speed, I know that you can change it by using Set Move Route, but unfortunately, I don't know how to map this to a button. I attempted using a Conditional Branch with a button press, but that didn't work. As for the "all sprites approach, etc.," I have no idea how to even start that. Any help would be fine.
Thank you!