# Changing money value

**URL:** <https://forum.kirupa.com/t/changing-money-value/132564>\
**Category:** Uncategorized\
**Created:** [December 30, 2004, 12:14am UTC](https://forum.kirupa.com/t/changing-money-value/132564 "2004-12-30T00:14:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fourthsword](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fourthsword](https://forum.kirupa.com/u/fourthsword)\
**Post date:** [December 30, 2004, 12:14am UTC](https://forum.kirupa.com/t/changing-money-value/132564/1 "2004-12-30T00:14:57Z")

</div>

How do I change the value of the money I’m using in my game. Here’s my code.

```auto

  onClipEvent (enterFrame) {
  
  if (_root.hero.hitTest (this)) {
  
  _root.money++;
  this._x = -50;
  this._y = -50;
  
  }
  
  }

```
