Stay with the platform?

Non-platform specific questions.

Stay with the platform?

Postby Hblade » Wed Jul 04, 2012 3:58 pm

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?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Stay with the platform?

Postby skydereign » Wed Jul 04, 2012 7:56 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Stay with the platform?

Postby Hblade » Wed Jul 04, 2012 8:39 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Stay with the platform?

Postby skydereign » Wed Jul 04, 2012 10:52 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Stay with the platform?

Postby Hblade » Wed Jul 04, 2012 11:49 pm

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.


http://www.youtube.com/watch?v=VfB3S1VAEoE

What would be the workaround?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Stay with the platform?

Postby skydereign » Thu Jul 05, 2012 7:26 am

The best workaround is to use xscreen, which you say you are using. So, given what you have, I can't replicate your problem.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Stay with the platform?

Postby Hblade » Thu Jul 05, 2012 6:58 pm

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 :D I can live with that.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest