I’ve been trying to make a dash system by increasing the player’s speed to 2.5x for 0.35 seconds, and then decreasing it to 1.0x after that period has passed. This comes with terrible side effects, though. For example, I frequently get teleported backwards after using the dash because the game thinks I’m cheating. How should I fix this?
The game is all about dashing (you get a quantum portal and a dash that recharges every 1 - 2 seconds) so help would be greatly appreciated.
You will need:
Overlay x1
Counter x1
Wire Repeater x1
Trigger x1
Speed Modifier x2
Go to the devices tab and select the speed modifier, trigger, wire repeater, and game overlay.(Make sure to copy your speed modifier by clicking “c” while hovering over it!) First things first select the game overlay and set it to be a button. Next, make the button broadcast on a channel which we’ll call activate_speed and wire the overlay to the trigger so that when button clicked, activate trigger.
Next select the trigger and make it broadcast on channel increase_speed when triggered, set the trigger delay to be 0.01, set the activate trigger channel as activate_speed and the deactivate channel as deactivate_speed. Finally set the trigger configuration for trigger by player collision to be “No” and the scope to be “player”. Place the wire repeater preferably next to the trigger, and wire the trigger so that “when triggered” send pulse and when pulse received trigger the trigger.(This creates a loop). Select one of your two speed modifiers and set the speed to 2.5 speed when receiving on increase_speed. Select the other one and set it to be 1.0 speed when receiving on decrease_speed. Finally select your counter and set the target value to be 35 while increasing ticks upon receiving on increase_speed. Set the channel to broadcast as deactivate_speed and set the counter to reset upon receiving on deactivate_speed.
Additional steps if you’d like:
Hide the trigger and counter by changing “visible in game” to “no”.
If you’ve gotten here, then congratulations you’re done! Good job making your own dash system!
(Please note: I have no idea if this is memory efficient so if anyone has a better method please lmk)
(Oh also pls lmk if this doesn’t work for some reason. It worked for me but I might have missed a step)
I’ll add pictures later when I’m not lazy
Listen, I think most people (mainly one person who has posted the same solution over and over again for like 5 posts) here have made a FUNDAMENTAL MISUNDERSTANDING. I have already made a dash system nearly identical to the ones in the above posts, but it’s weird and teleports you backwards when you use it due to your speed only getting boosted for 0.35 seconds. I do use a trigger that has a delay and a speed modifier, but that just doesn’t work.
The question I’m asking is if anyone has a dash system that doesn’t lag you back.