- Home /
How to make character "stick" to moving platform?
Hi, I could use help with a 3D platformer I'm working on. My character will sometimes fall through a rising platform especially if I set it's speed high and won't move with horizontal-moving ledges(it "slides" out from under his feet). I have a ladder I can't get to function and just two enemy behaviors I need to implement. The main character is a meerkat, and the style of play is very much like old 2d platformers, but just on a larger scale. The first level I'm working on now will be only a starting place as my idea is to make a game that will have a longer lifespan than most platformers.
I would suggest doing something like, making the player a child of the elevator until they move off, then remove the connection... This can work at least, I've seen/done it.
Yep, I'd go for parenting. Use a trigger to establish the connection.
Thanks I hadn't thought of searching elevator. I found a video on youtube that gives a tutorial for making a script that prevents fall-through.
Answer by TechnoBuddhist · Dec 08, 2011 at 12:45 PM
For others that may come across this post in the future(like me) I believe the elevator tut is this one...
Answer by chrono1081 · Jun 12, 2011 at 07:22 AM
Do you happen to have a link to the video? I've been searching for days for this answer and all I see on the Unity forums is plenty of "google it" of "this has been asked before, let me give you some broken links to try" responses and absolutely no working responses : /
Your answer

Follow this Question
Related Questions
Moving Platforms + Third Person Controller 0 Answers
Moving an object between two positions (C#) 1 Answer
How to compensate for moving platforms that move side to side 2 Answers
Make simple moving platform 2 Answers
2D Platformer Moving Platform Question 3 Answers