Moving Platforms
Posted: 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.