How do I make a bouncing player?

0 favourites
  • 4 posts
From the Asset Store
Bouncing ball
$9.99 USD
Template for a bouncing ball game, fully documented in comments and video
  • I have a player sprite with a CustomMovement behaviour and i want to achieve for it something like the "bounce off solids" property of the bullet behaviour. I have tried with some CustomMovement reverse options and I've done something that only works when the player is bouncing against some prefect formed sprite, but this is not working with a sprite that have a strange formed collision polygon:

    I hope I've explained myself clear enough.

    Could somebody help me with this?

    Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you considered changing the collision polygons so they will be more conducive to the desired effect. Is there some reason you can't? It's a little hard to tell without seeing the game.

  • The problem is that I want to bounce in different angle and speed depending on how the player hit the sprite.

    I uploaded the capx. What I want is to get a more "natural" bounce when I hit the green sprite (I haven't even got this with the black squares).

    Thanks for answering.

  • I've found a solution.

    For my player movement I'm gonna use the Physics behaviour instead of Custom movement. With this, construct2 will gonna handle the bounces automatically.

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