How to make a character jump while unpinning him

0 favourites
  • 7 posts
From the Asset Store
Jump on candies, collect candies and earn score!!!
  • Hello there !

    I've searched a while but didn't find any answer so I'm asking you guys: How to make a character jump while unpinning him from another sprite ?

    Explanation: The character (who have a platformer behavior, and many others) is attract to an asteroid (simple sprite with solid behavior on it) when he is overlapping another sprite whose around the asteroid. And when the player is on collision with the asteroid, he is pin to the asteroid while it is spinning (so the player spin with it). Then, I want the player to jump from that asteroid when I play the good input (a mouse click).

    But the problem I have is that the player don't jump from the asteroid. Any ideas how to fix that ?

    If it's more clear: it would be a platform whose stick the player on it and whose spin at the same. The player has to enter the input to jump at the right time go on another platform

  • It does not jump because it is not standing on ground. (i take it that it is orbiting).

    Just 'Set vector Y' directly.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I gamble that this is what you try to do.

    https://www.dropbox.com/s/5lufkjha29upj ... .capx?dl=0

    I am not that happy with this, i feel like the platform is pushed to close to its limits.

  • I don't have the plugin you've used in your capx so I can't open it ^^ But thanks for the help.

    I was also thinking that it was the platform behavior who was not adapted for that. So I deleted it from the player and use only the physics, and it's much better !

  • All you do is on jump unpin player

    player ignoring input

  • All you do is on jump unpin player

    player ignoring input

    It is not that easy. In case of the combination pin/platform, the moment of the pin is extremely important.

    Pin 'on land' and the 'push-out-off-solids-routine' might not be ready. Locked up in the solid. Pin a little to late and it has no ground to jump from. Besides that, the pin might push it into the solids (it does not have a 'push-out-off-solids-routine'). Very difficult when dealing with round objects as planets tend to be. Only Physics has a circle collision mask, for you to choose. The other behaviors rely on masks build with lines, and a half pixel can make a difference. I jumped into this, like i jump into everything. But actually trying it myself got me stuck really quick. But it is heaven to learn from.

  • In that case particularly, I finally managed to have the effect I want, but it was without the platform behavior, only with the physics. And really, it was way more easy to do it with physics only.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)