Ok, in my preloader i made a game, the game plays then has AS that if SPACE is pressed then if will play a winning scene, and if it is not then it will continue on to play the lossing scene, so my AS is like the clip is running then AS<
on (press, keyPress “<Space>”) {
gotoAndPlay(30);
}
so if u press space it will run the good clip if u dont then it will continue running and hit my AS that Gotoandplays (105) which is the lossing squence then it replays this… So i want to make a counter for this game, a kind of Score board so i made a Dynamic Text Box and i made the var “total” so my new AS is…
on (press, keyPress “<Space>”) {
gotoAndPlay(30);
_root.total = _root.total+100;
}
So it will add 100 to the score when u succsefully press space in adition to makeing the sucess clip play! But it dosnt work…
i dont know why it doesnt, ive tried so many things to make it work…
I tested my scrpit with buttons like
On (release) {
_root.total = _root.total+100;
}
And the buttons work but not this! why not! plz help!!!