# First Page Game

**URL:** https://discourse.processing.org/t/first-page-game/22033
**Category:** Coding Questions
**Created:** [June 21, 2020, 11:52am UTC](https://discourse.processing.org/t/first-page-game/22033 "2020-06-21T11:52:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marika20](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@marika20](https://discourse.processing.org/u/marika20)
#### Post date: [June 21, 2020, 11:52am UTC](https://discourse.processing.org/t/first-page-game/22033/1 "2020-06-21T11:52:31Z")

</div>

Hi everyone, I have a question: does anyone know how to put some sort of timer to insert a game interface?  
I’m creating a game where there is an interface that must be shown initially and then disappear … does anyone know how I could make an image have a timer and then disappear?  
Thank you

---

<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: [June 21, 2020, 2:31pm UTC](https://discourse.processing.org/t/first-page-game/22033/2 "2020-06-21T14:31:46Z")

</div>

```auto

int timer; 

void setup() {
  size(333,333); 
  timer = millis();
}

void draw() {
  background(0); 
  if (millis()-timer > 3300) {
    text("GAME", 111, 111);
  } else {
    text("Start image", 111, 111);
  }
}

```

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [June 21, 2020, 11:38pm UTC](https://discourse.processing.org/t/first-page-game/22033/3 "2020-06-21T23:38:52Z")

</div>

Hello,

Check out:

> **[25 life-saving tips for Processing](https://amnonp5.wordpress.com/2012/01/28/25-life-saving-tips-for-processing/)**
>
> I have bundled a huge number and variety of code examples in this single mega-post. Please learn from my mistakes and experiences! ;-)

  
In the timing example #1 (above website) should have this at the end of setup:

`timer = millis();` to set a “start” time.

```auto
int timer;

void setup() 
  {
  println(timer, millis());
  timer = millis();
  println(timer);
  }

```

println() is your friend!  
Notice that draw() does not start until around **400 ms** after setup():

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/37d6abaf69da7a1109dd42821d98b9626939ce3a.png)

[https://processing.org/reference/frameRate\_.html](https://processing.org/reference/frameRate_.html) Note the default!  
[https://processing.org/reference/frameCount.html](https://processing.org/reference/frameCount.html)  
[https://processing.org/reference/modulo.html](https://processing.org/reference/modulo.html) Just because its fun!  
[https://processing.org/reference/millis\_.html](https://processing.org/reference/millis_.html)

It’s good to know your options. 🙂

`:)`
