How would I go about making a Crash Bandicoot type crate?

0 favourites
  • 7 posts
From the Asset Store
Minimalist Crash Balls is a game where the goal is to hit the ball on the portal, with 20 different levels :)
  • Hi,

    I'm trying to make a crate that acts in a similiar way to the ones in Crash Bandicoot.

    Meaning, that when the player lands on the crate they bounce and the crate is destroyed & if the jump button is pressed when colliding with the crate the player bounce is higher.

    So, I know how to destroy an object on collision but, I'm not sure how to implement the bounce.

    Any help would appreciated.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Platform behaviour > Set vector Y to a negative value, will produce a kind of sonic the hedgehog spring bounce effect which is probably what you need.

  • Hey,

    Thanks!!! That takes care of the bouncing.

    Now I just need the player to bounce higher when the jump key is held down.

  • If jump key is down set vector Y to a lower number.

  • Thank you, it's working now

  • Hey,

    So, I got the crates working but, I want to set a different animation when the player collides with the crate while holding jump.

    What I tried to do was:

    On collision, Keyboard "space" held set player vector Y=-600, set animation to "High jump"

    What ends up happening is that the "High jump" animation plays for about a frame before defaulting to the standard jump animation.

    How would I go about negating the jump animation?

    Thanks

  • You need to add conditions in the normal jump animation event such as 'when not doing high jump'. You'll need to have this as a variable or bool on the player, something like isJumping for jump which you may already have and isHighJumping for high jump. This means that it will know to only use the jump animation when not in high jump.

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