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


  #1  
Old 12-22-2008, 12:46 PM
sandeepv sandeepv is offline
Registered User
 
Join Date: Dec 2008
Posts: 3
Rep Power: 0
sandeepv is on a distinguished road
Lightbulb help on score tracking

hi
i have played an online flash game. At the end of the game it stores the score in the database.
Now im working on a project in which i have the flash games with me (not online) but when someone will play then that score should be saved in the database i have created. Is it possible. Please tell me the solution for it.
Thankyou
Reply With Quote
  #2  
Old 12-25-2008, 03:13 PM
formlesstree4 formlesstree4 is offline
Registered User
 
Join Date: Dec 2008
Posts: 9
Rep Power: 0
formlesstree4 is on a distinguished road
So wait, do you need to keep track of the score in the game, or submit it to an online database?
Reply With Quote
  #3  
Old 12-25-2008, 05:57 PM
sandeepv sandeepv is offline
Registered User
 
Join Date: Dec 2008
Posts: 3
Rep Power: 0
sandeepv is on a distinguished road
Question

yes right.... i need to track the score and store it in the database....
please help me out
Reply With Quote
  #4  
Old 12-26-2008, 01:50 AM
formlesstree4 formlesstree4 is offline
Registered User
 
Join Date: Dec 2008
Posts: 9
Rep Power: 0
formlesstree4 is on a distinguished road
Certainly, I just wrote a death counter, so it will be easy to make it count for scores. As for submitting scores, I can't help you out.

Okay, so what we are going to do, is have a textbox, that is dynamic, and give it the variable: score.

Now, using ActionScript on your 'player', do this:

Actionscript:
onClipEvent (load)
{
	var _root.score:Number = 0
}

onClipEvent (enterFrame)
{
	if(_root.Player.hitTest(_root.scoreBall)){
		_root.score = _root.score+1;
	}
}
That 'should' work, I haven't tested it out, but it's a rough outline of what you need to use.
Reply With Quote
  #5  
Old 12-26-2008, 05:49 AM
sandeepv sandeepv is offline
Registered User
 
Join Date: Dec 2008
Posts: 3
Rep Power: 0
sandeepv is on a distinguished road
Question

ok i think it will work.....but can you pls help me out as per the aspx.vb script... i would like to trap the score ant save it to the database.... im new to flash so pls hel me out...Thankyou
Reply With Quote
  #6  
Old 12-26-2008, 07:44 AM
formlesstree4 formlesstree4 is offline
Registered User
 
Join Date: Dec 2008
Posts: 9
Rep Power: 0
formlesstree4 is on a distinguished road
I can't help you with sending the score, sorry. I don't know enough Actionscript to help you out yet...sorry.
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
High Score Table TheNewKid Newbies 0 01-01-2007 01:17 PM
score counter not working (please help)please aquillian Game Programming 3 10-09-2006 05:51 AM
Submitting score & e-mail address silverwood Server Side 0 12-06-2005 12:43 PM
Timer and Score Lelboy Flash MX 2 07-04-2004 08:28 PM
score control Evelyne1976 Flash MX ActionScript 3 04-27-2004 02:18 AM




All times are GMT. The time now is 06:03 AM.