# Variables!

**URL:** <https://forum.kirupa.com/t/variables/85658>\
**Category:** flash\
**Created:** [April 6, 2005, 12:54pm UTC](https://forum.kirupa.com/t/variables/85658 "2005-04-06T12:54:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oli\_G](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Oli\_G](https://forum.kirupa.com/u/Oli_G)\
**Post date:** [April 6, 2005, 12:54pm UTC](https://forum.kirupa.com/t/variables/85658/1 "2005-04-06T12:54:46Z")

</div>

Ahoy hoy, a little stuck in flash regarding variables.

I am making what’s essentially an interactive pet, with two user controlled attibutes (lets call them health and play, though theyre a little different).

Each has four different stages - so I need two variables that range from 0-3. Kinda like traffic lights…

Theres a food and a medical button, each which bump up the respective variable by an increment of one.

But every 5 seconds, each variable also drops by one.

Kinda used to the Director way of doin things, so a little spaced out here in regards to setting a timer and attaching the variables to it. I guess making the buttons bump them up should be easy enough.

Anyone got a few little trickies for me?

cheerz!
