# \[Flash8\] Need help with game!

**URL:** <https://forum.kirupa.com/t/flash8-need-help-with-game/302114>\
**Category:** flash\
**Created:** [December 22, 2009, 1:43am UTC](https://forum.kirupa.com/t/flash8-need-help-with-game/302114 "2009-12-22T01:43:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meklanh](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@meklanh](https://forum.kirupa.com/u/meklanh)\
**Post date:** [December 22, 2009, 1:43am UTC](https://forum.kirupa.com/t/flash8-need-help-with-game/302114/1 "2009-12-22T01:43:24Z")

</div>

Hey guys. I’m a learner, and need some help! I’m making a dress up game, where the user drags the clothes on (which are movie clips), and pay a certain amount of cash, as in, there is a dynamic text box at the top left corner, and because the clothes move with an on (press) command, and they stop moving with the on (release) command, I want the values to decrease when they drag the clothes (or to execute in the on (press) command), and if they don’t like their choice they click a button to increase the value in the dynamic text box back to 50 (as that is how much the guy has). I’ve been trying cash = cash - 5 but that didn’t work, so then I tried health -= 5 but that didn’t work either. Am I doing something wrong? Thanks for any help meklanh PS: Is there a way to set the values back to 50 when the user clicks a button? I tried on (press) { cash = 50; } but that didn’t work. Could you help me with that too?
