# Can someone help me with this game? (image order)

**URL:** <https://discourse.processing.org/t/can-someone-help-me-with-this-game-image-order/28147>\
**Category:** Coding Questions\
**Created:** [February 28, 2021, 7:01pm UTC](https://discourse.processing.org/t/can-someone-help-me-with-this-game-image-order/28147 "2021-02-28T19:01:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [March 1, 2021, 10:48am UTC](https://discourse.processing.org/t/can-someone-help-me-with-this-game-image-order/28147/5 "2021-03-01T10:48:08Z")

</div>

I worked further on this.

You need to work with an array because then you have data (the order) to compare the mouse input to.

**What to do**

Basically in mousePressed() register in which of your 4 screen fields the mouse has been clicked.

- The first time it must be clicked in the field where the first image is located. You need to compare it, and when correct, count it
- The 2nd time it must be clicked in the field where the 2nd image is located. And so on

Setting up a variable makes this easy.

When counting gives 4, the player has won.

---

_[View the full topic](https://discourse.processing.org/t/can-someone-help-me-with-this-game-image-order/28147)._
