# Extra life every 1000 points

**URL:** https://forum.kirupa.com/t/extra-life-every-1000-points/52380
**Category:** programming
**Created:** [May 23, 2004, 7:27am UTC](https://forum.kirupa.com/t/extra-life-every-1000-points/52380 "2004-05-23T07:27:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Blackspirit](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@Blackspirit](https://forum.kirupa.com/u/Blackspirit)
#### Post date: [May 23, 2004, 7:27am UTC](https://forum.kirupa.com/t/extra-life-every-1000-points/52380/1 "2004-05-23T07:27:22Z")

</div>

Hi, long time browser, first time poster

I’m making a pong game, just wondering how to add a life every time you reach 1000 points. Yes, I’ve used the mod operator, but that doesn’t always work…

Say I’m on 999 points, then I hit a block and get 2 points. Thats 1001, and my mod operator doesn’t count it.

current if statement to add life:

if(score%1000==0)

anybody got any ideas?
