# I want the touch or mouse presses a sprite

**URL:** <https://phaser.discourse.group/t/i-want-the-touch-or-mouse-presses-a-sprite/6492>\
**Category:** Phaser 3\
**Created:** [May 29, 2020, 8:47pm UTC](https://phaser.discourse.group/t/i-want-the-touch-or-mouse-presses-a-sprite/6492 "2020-05-29T20:47:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![buqer\_ok](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/buqer_ok/32/3444_2.png) [@buqer\_ok](https://phaser.discourse.group/u/buqer_ok)\
**Post date:** [May 29, 2020, 8:47pm UTC](https://phaser.discourse.group/t/i-want-the-touch-or-mouse-presses-a-sprite/6492/1 "2020-05-29T20:47:18Z")

</div>

I want that when the touch or mouse presses a sprite, increase the position Y of this sprite

---

<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 30, 2020, 3:56pm UTC](https://phaser.discourse.group/t/i-want-the-touch-or-mouse-presses-a-sprite/6492/2 "2020-05-30T15:56:27Z")

</div>

[http://phaser.io/examples/v3/view/input/game-object/on-down-event](http://phaser.io/examples/v3/view/input/game-object/on-down-event)

---

<div class="post-metadata">

**Author:** ![buqer\_ok](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/buqer_ok/32/3444_2.png) [@buqer\_ok](https://phaser.discourse.group/u/buqer_ok)\
**Post date:** [May 31, 2020, 2:15pm UTC](https://phaser.discourse.group/t/i-want-the-touch-or-mouse-presses-a-sprite/6492/3 "2020-05-31T14:15:04Z")

</div>

sprite.setInteractive()

sprite.on(‘pointerup’, () =\> {  
sprite.y -= 50  
})
