Platform moves endlessly and player doesn't slide down

Kirion 5 months ago in Game Creator updated by Marti (Lead Developer) 4 months ago 5

Hi everybody,

I hope you can help me! :)

My question is based on two similar questions, I didn't know where to ask it so I opened a new one. I hope that's okay!

My goal is that my platform should move permanently in one direction and the player can still move freely on this platform and is moved along. According to another question this permanently movement is only possible with the "carrot and rabbit" method. (An Empty is hung in front of the platform and this platform uses the MoveTo Action). 


Unfortunately I can only assign a character and no game object there.

I simply made the movement of the platform with a short script: "transform.position += Vector3.left * PlatformSpeed * Time.deltaTime;"

So the platform moves endlessly and with the actions I also managed to set the player as a child object (https://support.gamecreator.io/communities/1/topics/207-player-stay-with-a-moving-platform). But with my script the player still slides off the platform (even as a child of it). BUT when I move the platform with actions, the character stays on it and everything works, but the platform doesn't move indefinitely.
So there has to be a difference between moving by my script and moving by action.

Is there a way to move the platform with my script, but to let the player stay/move on it?

Does anyone have any ideas how I can fix this? :)

Thanks a lot!

Unity version:
Game Creator version:

The Action Pack available soon (waiting on Unity) has Moving platforms and the player can move about freely. Check out the  video (40 seconds on is the platforms).

Thanks for your fast answer! That looks really interesting. :D

Can you already estimate when the package will be available? 

And how exactly will the player be kept on the platform? Also with colliders and as a child?

I would like to be able to control the speed of my platform with 2 levers (left lever has speed 4 for example, right lever 10), when one is activated the other is deactivated automatically and if no lever is active, the platform should stop. But more important for me, the speed switch should also be smooth (some kind of lerp). Is that also possible with your pack? :)

The Asset was sent to Unity over a week ago, but under the current work from home thing, it could be tomorrow, it could be the end of the month, really no idea.

The move object Action for the platform has easing (tweening as some called it, or lerp), and you can control the speed, by setting the time it takes to arrive. You can also set the time it waits before it returns, and then repeat the action.

As you can see in the video, it works well, and looks kinda cool.

Let's hope it won't take too long, it looks really good!

I would still be interested to know why my player, even though he is a child of the platform, does not move.

This happens as mentioned only with the line from my script: transform.position += Vector3.left * PlatformSpeed * Time.deltaTime;

When I move the platform with the Transform Action, everything works.

Can you or anyone else tell me why that is? :(


I'm marking this issue as resolved then. This module is looking good Paul!