# Making bouncing platforms

**URL:** <https://phaser.discourse.group/t/making-bouncing-platforms/11686>\
**Category:** Phaser 3\
**Created:** [May 12, 2022, 1:56pm UTC](https://phaser.discourse.group/t/making-bouncing-platforms/11686 "2022-05-12T13:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtn\_wnd](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/mtn_wnd/32/6520_2.png) [@mtn\_wnd](https://phaser.discourse.group/u/mtn_wnd)\
**Post date:** [May 12, 2022, 1:56pm UTC](https://phaser.discourse.group/t/making-bouncing-platforms/11686/1 "2022-05-12T13:56:02Z")

</div>

Hi! I’m making a platforming game using Phaser 3, and i want to have ‘bouncing platforms’. What i mean by this is having the player bounce off of the platforms when they hit them. So far I’ve tried to use the setBounce(0, 1) method on collision, but it just makes the player bounce off of everything. I have tried to invert the player velocity on collision as well, but the velocity on impact is 0, so it doesnt work, and i’m a bit lost now.  
So overall the main idea would be to have a setBounce(0, 1), but only on my platforms and not the player. But i dont really see how to do that, so thats why i’m asking for help here 🙂  
Have a nice day!

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [May 12, 2022, 5:59pm UTC](https://phaser.discourse.group/t/making-bouncing-platforms/11686/2 "2022-05-12T17:59:06Z")

</div>

👋

Instead of `add.collider(…)` you can do

```javascript
function update () {
  player.setBounce(0, 1);

  this.physics.collide(player, platforms);

  player.setBounce(0, 0);
  // …
}

```
