AltimitSystems / mv-plugins

Altimit Systems RPG Maker MV Plugin collection
18 stars 13 forks source link

Movement speed #40

Open Arend-009 opened 5 years ago

Arend-009 commented 5 years ago

It's not possible to change movement speed to a decimal number like 4.65 without heavy slowdown when walking anywhere between up and left.

sinchross commented 5 years ago

I noticed that when I have done it, putting decimal number in the movement speed, that when I'm moving to the left direction, the character is moving much more slower than in the other directions.

sinchross commented 5 years ago

I have noticed that when the distancePerFrame result is not a exact result of a integer number divided by 48, the speed of the characters don't work properly.

For example, the default speed (4) gives a 0,0625 result in the distancePerFrame function. (3/48 is equal 0,0625).

The moveSpeed of 5 gives 0,125 result in the distancePerFrame, again, (6/48 is equal 0,125).

I have tested to put another numbers with exact results by a division with 48 in there and the speed have worked normally with them. Like 9 / 48 or 15 / 48.

In the vanilla is possible to change this Speeds to any value and the movements stayed ok. With the Altimit Move, the speeds don't works properly without a exact number that is a result of a integer divided by 48. Can't find the reason of it to happen and could not to fix it.