# 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:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Lumine](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@Lumine](https://discourse.processing.org/u/Lumine)
#### Post date: [March 3, 2026, 2:12pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/1 "2026-03-03T14:12:40Z")

</div>

I need help because I’m new to Processing and I was wondering how to create a timer for a little game (a whack-a-mole game with cubes instead of moles).

I need to finish the code quickly (in less than a week) and I REALLY need help.

By the way, I’ve already seen a few posts on this topic, but I don’t understand any of them.

Thanks to anyone who help me !

---

<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.

---

<div class="post-metadata">

### Author: ![Lumine](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@Lumine](https://discourse.processing.org/u/Lumine)
#### Post date: [March 5, 2026, 1:08pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/3 "2026-03-05T13:08:04Z")

</div>

Thank you for replying to me @josephh, i will check this later !

---

<div class="post-metadata">

### Author: ![EricRogerGarcia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ericrogergarcia/32/21029_2.png) [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)
#### Post date: [March 9, 2026, 6:12pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/4 "2026-03-09T18:12:51Z")

</div>

have you done it ?

is it possible to see it ?

(I like to see others ideas !)

no problem if it is very little, don”t be shy (kindly)

---

<div class="post-metadata">

### Author: ![Lumine](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@Lumine](https://discourse.processing.org/u/Lumine)
#### Post date: [March 10, 2026, 12:44pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/5 "2026-03-10T12:44:21Z")

</div>

well yes and no for just one thing: i dont find the code anymore and i finish the things that i have to do.

you and I will be the latest person to talk in this dsicussion. sorry for this and IM NOT SHY, just i didnt check my mailbox since a few days so sorry if i respond this late and thanks to @josephh for the help.

I will block this dsicussion in the next week-end, thanks to take care of this information and I would like to do it by myself since I’m new here. Thank you and have a nice day @EricRogerGarcia.

---

<div class="post-metadata">

### Author: ![EricRogerGarcia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ericrogergarcia/32/21029_2.png) [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)
#### Post date: [March 11, 2026, 6:23pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/6 "2026-03-11T18:23:06Z")

</div>

I had no disagreeable intention!

---

<div class="post-metadata">

### Author: ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)
#### Post date: [March 11, 2026, 7:02pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017/7 "2026-03-11T19:02:35Z")

</div>


