# Quantity increases.. not working

**URL:** <https://forum.kirupa.com/t/quantity-increases-not-working/283566>\
**Category:** Uncategorized\
**Created:** [March 8, 2009, 6:04am UTC](https://forum.kirupa.com/t/quantity-increases-not-working/283566 "2009-03-08T06:04:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saigo](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Saigo](https://forum.kirupa.com/u/Saigo)\
**Post date:** [March 8, 2009, 6:04am UTC](https://forum.kirupa.com/t/quantity-increases-not-working/283566/1 "2009-03-08T06:04:34Z")

</div>

```auto
var qty = (5 + (Math.round(_root.myTimer/10)-1));

```

why is this wrong?

‘myTimer’ increases…

‘qty’ is used to determine a number of enemies.

not working.
