I have a moving platform that goes on a line (using the path tool), when my player gets on it he doesn't follow it. He slides off of it, and doesn't move with the platform. How can I make this work to where he actually stands ON the platform?
Re: Stay with the platform?
Posted: Wed Jul 04, 2012 7:56 pm
by skydereign
You can parent the player to the platform. That way the player sticks with it. And when they fall or jump off you unparent it.
Re: Stay with the platform?
Posted: Wed Jul 04, 2012 8:39 pm
by Hblade
Thanks Edit: this causes the screen to flicker for some reason. Its trying to move to the next screen and then sends its self back o.O
Re: Stay with the platform?
Posted: Wed Jul 04, 2012 10:52 pm
by skydereign
How are you handling view movement? If the player's x and y values are used, then parenting will cause problems. There are ways around this, but I can't be sure about your setup.
Re: Stay with the platform?
Posted: Wed Jul 04, 2012 11:49 pm
by Hblade
Yeah its if the players X is more than the views width it jumps over one, same with Y. and vise-verse, when xscreen is less than 0 it moves left.
The best workaround is to use xscreen, which you say you are using. So, given what you have, I can't replicate your problem.
Re: Stay with the platform?
Posted: Thu Jul 05, 2012 6:58 pm
by Hblade
Ah thats fine, I'll figure out something. I tried using directional_velocity but that did nothing either
Edit: i finally fixed it with a ton of trial and error theres only 1 tiny glitch and thats the player sometimes goes a tad inside of it (I dont use Physical Response for the collision). YAY though I can live with that.