Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Go to common events
make the trigger parallel process
then put a conditional branch triggered by a button
then put in change speed up in movement
and in else put change speed down in movement
Yeah, I'm not saying anything bad here, but you should really think before you type, this script is SO easy to find, but why use a script when you can use a VERY simple common event ?
Forget events, mesosade wanted a simple dash script so mesosade shall have one.
Code:
class Game_Player
alias arbitergoes_spooky :update
def update
arbitergoes_spooky
if Input.press?(Input::C)
@move_speed = 4
else
@move_speed = 3
end
arbitergoes_spooky
end
end