|
-
player score help
ok im having trouble making a player score. on tutorials it says u have to make a dynamic edit box but i dont know how to make the edit box dianamic. so thats my first question.
second, this isnt a button pressing game like all the turtorials have, i want, after my sword collides with my clones badguys, i want the score to go up,
so here is my script:
for (i=0;i<num_badguy;i++) {
if (element ("Sword").collideRect (badguy[i])) {
badguy[i].unloadMovie();
badguy.remove(i);
num_badguy--;
root.score = root.score+10;
but sence the edit box isnt dynamic, my every time i kill a badguy my score just adds a 10 to it like this, if i kill 5 badguys it appears like this : 1010101010, which it really should be 50, so maybe my script is wrong, but im not sure how to make the edit box dynamic.
if u know what the problem is please help,
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|