
Welcome Guest
|
#1
|
||||
|
||||
|
score counter not working (please help)please
i have created my very first game and have been able to include a timer collision (timer ends -game ends (hp = 0 -game ends)
]but i am having trouble with my scoring system. i have the score text box set to - dynamic and have given it a var name of score. but nothing happens (because there is no action to tell the score text to rise by 10 each time. i have found tutorials and other info in search engines but these only tell you how to increase the score with a button. i would like the it to increase whenever i pass over a (score block) also i would like to add (hp blocks) so that hp can be increased. any assit would be greatfully recieved thanx in advance. please help |
|
#3
|
|||
|
|||
|
Hit Test?
If you are using HitTest you should add the function in here:
example: function scoreIncrease(){ // set the new score of score text box score += 10; } make sure you initialize it to 0 when the movie first loads or you will get a NAN in text box. NAN means not a number. Happens when you try to add a number to nothing or a string. Hope this help! |
|
#4
|
||||
|
||||
|
ill try that now
i post if it works or no |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| score not working | kentcheung2000 | Flash 8 |
1 | 10-22-2007 08:24 PM |
| elastic grow didnīt return to normal size | aolba | Flash MX |
5 | 03-16-2005 01:46 AM |
| How Do You Add A score COunter | Stuntman | Flash MX |
3 | 09-02-2003 02:41 AM |
| Left side of assignment operator must be variable or property. | mancroft | Flash MX ActionScript |
2 | 06-29-2003 10:50 PM |
| Elastic FX, didnīt return to normal size | aolba | Flash 5 and below | 3 | 01-05-2003 06:06 AM |

Programming Languages



