Envision, Create, Share

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.

How do I change the player's speed?

Redman

Sponsor

I hope it's the right subforum, if not: Sorry for that and please move to the right one.

What script do I have to change and where, to make my character to slow down a bit?
I searched in Game_Actor and Sprite_Character but I did find anything.

Sorry for this maybe ridicolously easy question but I habe no skill in scripting.
Thanks in advance for every single answer!

~Redman
 
Well, you have two options. You can change that in an event using the Set Move Route command which I think is the best way to do it.  If you really need to do that with a script, there's a variable in Game_Character for that, named @move_speed. Game_Player and Game_Event are both child-classes of Game_Character so you can use this variable in both classes. By default, this variable is set to 4 (the range is 1-6 but you can go higher).
 

Redman

Sponsor

Perfect, thank you, that was exactly what I searched.

Well of course I did try to change the player's speed with an event but somehow the normal move routes didn't work anymore after that.
That's why I wanted to change it in a script. Now everything works the way it should, thanks again.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top