EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
609
Reaction score
400
First Language
English
Primarily Uses
RMMV
Hopefully quite a simple one - for the different movement speed options for events, what is the speed in tiles-per-frame?

To put it another way, I'm in a situation where I need to know if I set an event to "Faster", and use "Move Right" 5 times, to know roughly how many frames it will take to reach the destination. For reasons I won't go into, I can't just use the "wait" option.

Is there a table which shows this data for all movement speeds? E.g.

"Normal" = 1 tile per 15 frames
"Faster" = 1 tile per 6 frames
etc.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
874
First Language
English
Primarily Uses
RMMV
I believe that the distance per frame can be calculated by the following :

Code:
(2ⁿ)/256
Where N is moveSpeed + D
Where D is either 1 or 0, depending on if the character is dashing or not dashing

Therefore ...

Code:
// No Dash
x8 Slower - 128 frames per tile
x4 Slower - 64 frames per tile
x2 Slower - 32 frames per tile
Normal (4) - 16 frames per tile
x2 Faster - 8 frames per tile
x4 Faster - 4 frames per tile

// Dash
x8 Slower - 64 frames per tile
x4 Slower - 32 frames per tile
x2 Slower - 16 frames per tile
Normal (4) - 8 frames per tile
x2 Faster - 4 frames per tile
x4 Faster - 2 frames per tile

Are you wanting for an event to wait until another event reaches a certain coordinate on the map, or ... ?
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
402
Reaction score
226
First Language
English
Primarily Uses
RMMV
The equation for distance moved per frame is:

Code:
Math.pow(2, this.realMoveSpeed()) / 256

In normal terms this is 2^moveSpeed / 256. Where moveSpeed is equal to the number of the moveSpeed (eg "Normal" = 4) in the editor.

So normal works out at 2^4/256 = 0.0625 (I presume this is tiles/frame)

If my understanding is correct it would be safe to assume that frames per tile would be the inverse, ie 1/0.0625 = 16 frames/tile.

If you put the two together you'd get an equation something like this:

1/(2^moveSpeed / 256)

Which can be simplified to

2 ^ (8 - moveSpeed)
 

Latest Threads

Latest Posts

Latest Profile Posts

Sales Goal of Learn RPG Maker MV at 64% now! :kaopride:
When I was in the hospital I did actually have a nurse that was funny, did all these extra nice things for me and said she liked me. So you know what that means. That will be the last time I'll hear from her.
Anyone here ever confronted a never-ending loading screen? Took me 3 hours to realize the problem was the font format :yswt:
Ah, the problems a noob runs into...
WOOHOO!! FIXED A MAJOR SHOP PROBLEM I HAD FOR MONTHS, WHAT A WAY TO END MY STAY-CATION!

Forum statistics

Threads
118,800
Messages
1,118,795
Members
155,979
Latest member
besher
Top