# How do I make my score for the game increase by 1 and have it displayed on the bottom corner?

**URL:** <https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160>\
**Category:** Beginners\
**Created:** [May 28, 2022, 9:22am UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160 "2022-05-28T09:22:27Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![itisti21](https://avatars.discourse-cdn.com/v4/letter/i/8edcca/32.png) [@itisti21](https://discourse.processing.org/u/itisti21)\
**Post date:** [May 28, 2022, 12:18pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160/21 "2022-05-28T12:18:06Z")

</div>

> [@Chrisir](#):
>
> Set it to true upon collision
> 
> showGameOverScreen=true;

For this part, “set true upon…” , do i write that in variables too? I don’t know how to do this part.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 28, 2022, 12:55pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160/22 "2022-05-28T12:55:22Z")

</div>

> [@itisti21](#):
>
> When my pedestrain hits the vehicle, the pedestrian is meant to reset back to its original position.

Instead of reset here we agreed to say

gameOverScreen=true;

The reset is called in keyPressed then. Here you say

gameOverScreen=false; obviously

and pedY = height-25; etc.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 28, 2022, 1:51pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160/23 "2022-05-28T13:51:25Z")

</div>

Does it work now?

Chrisir

---

<div class="post-metadata">

**Author:** ![yug717](https://avatars.discourse-cdn.com/v4/letter/y/f475e1/32.png) [@yug717](https://discourse.processing.org/u/yug717)\
**Post date:** [May 28, 2022, 2:17pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160/24 "2022-05-28T14:17:43Z")

</div>

no, I am having trouble with that still. I am not sure as to what you mean by that.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 28, 2022, 2:24pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160/25 "2022-05-28T14:24:25Z")

</div>

Then show your entire draw

---

<div class="post-metadata">

**Author:** ![NumericPrime](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/numericprime/32/16318_2.png) [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Post date:** [May 28, 2022, 4:06pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160/26 "2022-05-28T16:06:30Z")

</div>

I’m kinda getting a deja-vu moment here. I’ve a simular question also with a game that involves a player dodging cars and the question being on how to implement a scoring system with a hard cap…

The issue in this post was the saved coordinates of the pedestrian not matching up with the sprites coordinates. It was this thread:

[Hey guys, was wondering how i can make a scoring system and get my character to reset? I also need to be able to change the max score - Processing / Beginners - Processing Foundation](https://discourse.processing.org/t/hey-guys-was-wondering-how-i-can-make-a-scoring-system-and-get-my-character-to-reset-i-also-need-to-be-able-to-change-the-max-score/36940)

[Previous page](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160.md?page=1)
