# Need some help with a whack-a-mole

**URL:** <https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [March 3, 2026, 2:12pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017 "2026-03-03T14:12:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [March 3, 2026, 2:52pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/2 "2026-03-03T14:52:40Z")

</div>

Hi @Lumine,

Welcome to the forum !

People here won’t give you the full code for your game timer but instead try to help you learn how to do it, I already posted an answer about a similar problem:

> [@Brick Game Timer Question](https://discourse.processing.org/t/brick-game-timer-question/38605/2):
>
> Hi @newprogrammer12, To understand better how it works, maybe start with a simpler example (without Java classes). Displaying a timer implies using time. In Processing we can get the current time since the beginning of the program in milliseconds with the millis() function. Let’s look at the following program: // Starts at the beginning of the program int timerStart = 0; int duration = 1000; void draw() { // Time spent since the beginning of the timer int timeSinceStart = millis() - tim…

Hope this will help you ! 😇

Try to run the code yourself, try to modify it and otherwise ask questions here.

---

_[View the full topic](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017)._
