Moving Platforms

Talk about making games.

Moving Platforms

Postby DilloDude » Wed May 17, 2006 12:16 am

Now the thing with moving platforms is to change the parent - right? Now this works fine. But I have a problem - and I think it is a general problem with parenting: I have an actor I can carry - it uses x = player.x, y = player.y script. I have wierd effects when player is parented to a platform. The object just moves to the middle. It then stops moving (because collision has finished). I have done things like this with other cases with the same problem. Now one solution I came up with was to use a variables for whethe you are on a moving platform, the moving platform you are on, and distance between your x and the moving platform's x (and you could also use the distance between your y and moving platform's y). But it would be much simpler if parenting worked.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Game A Gogo » Wed May 17, 2006 10:46 pm

yes, that is truth
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron