LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 10-07-2006, 09:40 PM
aquillian's Avatar
aquillian aquillian is offline
Registered User
 
Join Date: Oct 2006
Posts: 210
Rep Power: 7
aquillian is on a distinguished road
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
Reply With Quote
  #2  
Old 10-08-2006, 08:31 PM
m. allen west's Avatar
m. allen west m. allen west is offline
Super Moderator
 
Join Date: Jul 2006
Location: United States
Posts: 1,672
Rep Power: 8
m. allen west will become famous soon enough
Read this thread two ways of keeping score here

Last edited by m. allen west : 07-29-2007 at 07:08 AM
Reply With Quote
  #3  
Old 10-09-2006, 05:12 AM
mikerflash mikerflash is offline
Registered User
 
Join Date: Oct 2006
Posts: 14
Rep Power: 0
mikerflash is on a distinguished road
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!
Reply With Quote
  #4  
Old 10-09-2006, 05:51 AM
aquillian's Avatar
aquillian aquillian is offline
Registered User
 
Join Date: Oct 2006
Posts: 210
Rep Power: 7
aquillian is on a distinguished road
ill try that now
i post if it works or no
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 03:00 PM.