Custom Player Movement Speed

AsuranFish

Veteran
Veteran
Joined
Jan 3, 2017
Messages
119
Reaction score
88
First Language
English
Primarily Uses
I'm surprised I haven't been able to find a plugin for this, with everything that's out there!

So what I'm looking to do is to set movement speeds for players (and possibly events, but one thing at a time) that fit outside the default values offered in the editor.

I did find this plugin, which allows me to set default movement speeds for player characters and vehicles, and that's great - but then I ran into a problem.

I discovered that slowing players down when climbing down ladders actually looks really cool, and makes more sense then having them zip down a ladder backwards at 25MPH. Especially when they're in a dark cave. So I set up a bunch of events to slow players down when they're on ropes and ladders, and events to speed them back up when they get off.

The problem is, once I do that, the plugin linked above becomes useless. There's no way to get your character back to the custom default speed, because the editor limits you to speeds of 1, 2, 3, 4, 5, 6... Which, for the record, can best be described as...

1: The character just had their legs broken, and is crawling up a slippery hill.
2: The character is 95 years old with bad knees.
3: The character is walking around, but is going too slow because they're busy watching YouTube on their phone.
4: The character is briskly walking through the supermarket, because they really have to pee.
5: The character just did a ton of cocaine and chugged a quart of Red Bull. They'll be dead soon.
6: The character is actually a missile.

Basically, I'd like to be able to set movement speeds to numbers between these preassigned values, because there is a TON of gap between these speeds. Personally, I found slightly slowing down default walking speed from 4 to 3.8, and sprinting from 5 to 4.6 made a world of difference in overall presentation of the game.

Bonus Points if it'd be possible to assign movement speeds to regions somehow, because then we could have fun with adjusting speed for things like ladders, knee-deep swamps, quicksand, conveyor belts - and such, without creating a million events.

Further bonus points if it'd be possible to add/subtract movement speed via items/equipment/states. That might be tougher, because of considerations like "Does the party leader have to be wearing the item, or can any party member wear it?", and so on...
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Afaik if you use the script call equivalent of the set move speed command, you can set it to anything..

I think its

$gamePlayer.setMoveSpeed(value)
 

bazrat

Pixel Game Maker MV
Veteran
Joined
Oct 15, 2018
Messages
241
Reaction score
176
First Language
English
Primarily Uses
Other
Engr. Adiktuzmiko way is easier, but alternatively you can use, examples:
Code:
$gamePlayer._moveSpeed = 3.8;
or
Code:
$gamePlayer._moveSpeed = 8.9;
or
Code:
$gameMap.event(this._eventId)._moveSpeed = 4.5;
that last one of the event, i have noticed that events cant follow certain decimals. i use altimit pixel movement though and we had to get a compatibility patch for decimals facing up and left anyway. so its probably just that particular plugin xD
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top