How many frames before character finishes walking 1 tile?

Hello 😀

The title says it all.
I'm searching how many frames it takes 1 character (at default speed) to reach the next tile.
The reason for this is for a collectable system, where my player collects coins when he passes them over, but he collects them as soon as I press the button. So I think I can fix this with a simple wait command.

I hope I was clear enough! If you have any questions, please ask!
I believe it's 16 frames for speed x4 (default). I can't remember the exact formula to calculate it right now. This does not account for diagonal movement.
Yup 16 is correct. To manually calculate it your self, you would use this function:

Code:
Game_CharacterBase.prototype.distancePerFrame = function() {
    return Math.pow(2, this.realMoveSpeed()) / 256;
};

and then divide 1 (since you want the time for 1 distance) by that output.

So a math eq from that would be:
Code:
256 / 2^(MOVESPEED)
so if your movespeed was 4, you would have: 256 / 2^4, which equals 16

Original thread: https://forums.rpgmakerweb.com/threads/how-many-frames-before-character-finishes-walking-1-tile.75454/