Player on a moving Platform

Hello!

I have a little but of a problem here. I want the player to step onto a platform which then carries him over a canyon.

Spoiler
What I have set up is the platform which has a center. When the player steps on this center, the platform starts moving with the player.I have the player and the platform have the same move route at the same speed (with the "(Wait)" box ticked only in the latter one), but it "stutters" a lot, that is, the player's position compared to the platform's position often times slides 1 pixel off (or a few, I can't really tell). So, the movement does not look smooth enough.

Now, I have also considered making the player and the platform one event, so make the platform invisible upon stepping on it and adding it to the player graphic, so it's combined, and I only need 1 event to move. This doesn't seem possible, however, since the platform has also a part of its graphic BELOW the player graphic, since the player needs to be in its centre, so one third of the platform's graphic happens to be south from the player's feet.

Is there anyone with an idea how to solve this problem? 🙂
EDIT: Oh, nevermind, I fixed it myself. 🙂 I used a loop for the movement, which itself wasn't the problem, but I also looped the player being made transparent and through in the same move command. That apparantly took some time to process, thus the stuttering. I put these settings before the loop, and now everything's pretty smooth. 🙂

Kind regards

Liak
If you want to do it with events and graphic changes, have an extra event below the platform event. When the player steps onto the platform, make the player and platform event transparent, and the hidden event below the platform opaque. That event will use the player/platform combined graphic that has the bottom part of the platform.


When you move it, it will start and stop one tile BELOW where you want the player to be. Then turn that event invisible, and the player and platform event visible again (after making sure both the player and the real platform are in their final positions).
Thank you for the suggestion. 🙂 But that is something I had also tried - combine both with the platform as a base (that already is located one tile below its center in the editor). The problem here was that the map is also large enough to make it necessary to scroll the map simultaneously (since you are not moving the player, it won't do that on its own). This caused stuttering, too. The combined event looked fine, of course, but the camera was "trembling", so to speak, making it, again, look rather unsmooth.
You can move the player as well, so the map scrolls - just don't have 'Wait for completion' on the first move route.
Oh, then I misunderstood you as far as getting the player to his final position was concerned. Then that is exactly what I ended up doing. I think you might have missed the edited part in the first post. 🙂 The solution to the stuttering was actually quite simple once I had this double movement set up in the way you suggested.
Yeah, I did miss the edit in the original post.


Why is the movement in a loop?
I didn't want an overly long movement command (because the distance the platform covers is quite a bit), and I thought it wouldn't make any difference anyway. I didn't except the engine to "stumble" upon a simple loop command (which even included not one movement step, but a bunch). Why I still didn't even try getting rid of it I don't know, though. Huh. High expectations towards the engine, as in "Come on, I KNOW you can handle a loop without lag!"? :/
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/player-on-a-moving-platform.20927/