Hey guys and welcome to my guide on making a sprint button/mechanic! This is useful for all kinds of games, like battle royales, racing games, etc. Now let’s get started!
(I’m sorry this is really short )
What You'll Need
- Game Overlay x1
- Speed Modifier x2
- Trigger x1
Step One
Take the Game Overlay and set it to Button. Set the position to anywhere you’d like (preferably bottom right) and set it to broadcast “sprint” when pressed.
When it’s done it should look like this:
Then get a Speed Modifier and set the speed to however fast you want the sprint to be. (I’d use 1.5x) Also set it to activate when “sprint” is broadcasted.
Step Two
Now we need to make the sprint stop after a certain amount of time. Get a Trigger and set it to activate on “sprint”, but set the Trigger Delay to 4 seconds. Set “when triggered, broadcast” to “stop sprint” and the finished settings should look like this:
Finally, get the second Speed Modifier, keep it at the normal speed (1.0x) and set it to activate on receiving “stop sprint.” Test it out and you should be able to move faster for a few seconds, then slow back down!
Step Three (optional stuff)
If you want to add a cool down, you’ll need another trigger and another channel. But first go back to the Game Overlay and make it so the overlay hides when receiving on “sprint.” Set the Trigger Delay on this one to 8, and set it to trigger on “sprint” as well. Set it to broadcast “cool down finished” when it triggers. go back to the overlay and configure it to show when receiving “cool down finished.”
Thanks for reading this and don’t forget to rate the difficulty!
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10