2 actors not at the same speed

Creator97Creator97 Member Posts: 140
edited October 2014 in Working with GS (Mac)

I have two actors. (Moving on top of a platform exactly horizontal) They have the same x velocity they are squares (exactly) So hight and with are both 50 Just 4 edges. They are positioned exactly!!! one above the other. So when i start the scene and I am not jumping they are moving together, but when I start jumping with the one below the other, the one above is moving a bit faster or slipping? I set the first 3 Attributes under Physics to 0 and also fixed Rotation? I also set acceleration (for gravity) at same 270 degrees and speed! How can i move them on the same speed without causing problems by jumping and why is the Gamesalad engine doing that?

Second problem is that I want to jump with the actor below when the other one is sitting on the top at same hight when he is not sitting on the top! Now when the other one is sitting on the top it is like a weight (maybe because of the other one s acceleration (gravity)). So how do I do that?
Same settings as above. I set the jumping with self.Motion.Line Velocity Y

Best Answer

  • jeezzcakejeezzcake Posts: 144
    Accepted Answer

    1) Unlock the actor above and constrain its X position to the X position of the actor below.

    2) Have a rule that says :
    when actor overlap or collides with the actor below and touch is pressed change y velocity to 200 otherwise when touch is pressed change y velocity to 100;

    Give it a try!
    Cheers

Answers

  • Creator97Creator97 Member Posts: 140

    The first one is right but I didn t get the second one clearly but tried everything. Can you make an example?

  • jeezzcakejeezzcake Member Posts: 144

    Here is a demo file.

  • Creator97Creator97 Member Posts: 140

    I tested yours several times. But the only thing you did was that the one below had twice as much self.motion.Linear.Velocity.Y as the above. And you set Density to 1. So when you jump with the one above first and then with the below before the other one felt down then the one below jumps twice as high as the one above. I was looking for that then the one below will jump exactly as high as the one above when there are not together!!!

    Do you know what I mean? Do you have ideas?

  • jeezzcakejeezzcake Member Posts: 144

    Is this what you are looking for?

    (see demo file below)

  • Creator97Creator97 Member Posts: 140

    Ah thank you for taking your time. I am german but I hope I can make it clear enough.
    So I have these 2 actors. They are ALWAYS colliding!
    I want both to jump as high as the other one (regardless wether the one is on the top or not!). So when the other one is not on the top, because he is on another platform, the one below will jump higher because he has no "weight" on top of him. When the other one is on the top it will not jump as high as before, because he has "weight" on the top! So how can I make him jump as high as he jumps when no "weight" is on the top. Did you get it?

Sign In or Register to comment.