# Player is able to jump on top of sprite?

**URL:** <https://phaser.discourse.group/t/player-is-able-to-jump-on-top-of-sprite/7334>\
**Category:** Phaser 3\
**Created:** [September 2, 2020, 10:03pm UTC](https://phaser.discourse.group/t/player-is-able-to-jump-on-top-of-sprite/7334 "2020-09-02T22:03:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nanoo](https://avatars.discourse-cdn.com/v4/letter/n/cdc98d/32.png) [@Nanoo](https://phaser.discourse.group/u/Nanoo)\
**Post date:** [September 2, 2020, 10:03pm UTC](https://phaser.discourse.group/t/player-is-able-to-jump-on-top-of-sprite/7334/1 "2020-09-02T22:03:38Z")

</div>

I am making a scroller game, with collectible coins. However, the player is able to jump on top of them. There are no colliders setup between the player and the coins (though there is an `overlap()` function to detect when the player has touched it).

Is there a way to prevent the player from being able to jump ontop of the coin? This issue causes the coins to fall (despite the physics, on the sprite, being disabled).

Thanks for any info!

---

<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:** [September 3, 2020, 4:01am UTC](https://phaser.discourse.group/t/player-is-able-to-jump-on-top-of-sprite/7334/2 "2020-09-03T04:01:56Z")

</div>

Static bodies do cause [blocked](https://photonstorm.github.io/phaser3-docs/Phaser.Physics.Arcade.Body.html#blocked) on overlaps as well. You can’t really prevent that, but you can do something like

```javascript
collide(player, platforms, function () {
  onPlatform = true;
});
// etc.

```
