How to make my upgrades menu work
Hi all
i have a flash game that i am creating but the upgrades menu doesnt want to work, i have a text box that i use for my coding so that if the text box is showing a certain number something happens (I.E A function happens), but i cant seem to get this working here is my code:
time.onEnterFrame = function() {
if(_root.cash <= 99) {
_root.count = 1;
}
}
time.onEnterFrame = function() {
if(_root.cash >= 100) {
_root.count = 2;
}
}
time.onEnterFrame = function() {
if(_root.cash <= 149) {
_root.count = 3;
}
}
I am using A.S 2.0 on this and i have two text boxes working on this, the first the cash text box and this goes up every time the player kills an enemy, and the second text box is a the count text box which should go up when the cash equals a certain amount how can i get this to do it? please help