# Update score

**URL:** <https://phaser.discourse.group/t/update-score/4702>\
**Category:** Phaser 3\
**Created:** [December 25, 2019, 3:33am UTC](https://phaser.discourse.group/t/update-score/4702 "2019-12-25T03:33:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfianinda](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@alfianinda](https://phaser.discourse.group/u/alfianinda)\
**Post date:** [December 25, 2019, 3:33am UTC](https://phaser.discourse.group/t/update-score/4702/1 "2019-12-25T03:33:39Z")

</div>

hi all, could anyone help me,

I want to add score after collision, but it doesn’t work… the score not add +1, but add \> +1

```
this.input.on('pointerdown', function (pointer) {

        this.tweens.add({

            targets: this.dubai,

            y: { value: 3000, duration: 1500}

        });

        //collision

        this.physics.add.existing(this.dubai)

        this.physics.add.existing(this.dubaiitem)

        this.physics.add.existing(this.dubaiitem2)

        this.dubaicol = this.physics.add.collider(this.dubaiitem, this.dubai, this.onCollideHandler, null, this)

        this.dubaicol2 = this.physics.add.collider(this.dubaiitem2, this.dubai, this.onCollideHandler, null, this)

    }, this);

    }

    onCollideHandler () {
        this.score += 1;

        this.scoreText.setText(this.score)

        console.log('oke')
    }
```

---

<div class="post-metadata">

**Author:** ![cuihu](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@cuihu](https://phaser.discourse.group/u/cuihu)\
**Post date:** [December 25, 2019, 3:49am UTC](https://phaser.discourse.group/t/update-score/4702/2 "2019-12-25T03:49:31Z")

</div>

maybe you need

> **[Making your first Phaser 3 game: Please select a language - Learn - Phaser](https://phaser.io/tutorials/making-your-first-phaser-3-game)**
>
> Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.

  
again
