Problems with scoring

Non-platform specific questions.

Problems with scoring

Postby metaknight22 » Sun Jan 25, 2009 8:37 am

I want to put a scoring mechanism in my game. For example, every time I shoot a plane down, one point is added to the score but I'm not quite sure how to do this. I've played around with a few things but they didn't work.
Projects
Kirby Starship Game

I'm a newbie so I haven't done much.
User avatar
metaknight22
 
Posts: 25
Joined: Fri Jan 23, 2009 7:34 am
Score: 1 Give a positive score

Re: Problems with scoring

Postby skydereign » Sun Jan 25, 2009 9:55 am

You would have a variable called score. Have a text based actor that displays score, and have a destroy actor event that increases score.
Code: Select all
score+=5;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Problems with scoring

Postby metaknight22 » Sun Jan 25, 2009 9:57 am

How do I get a text based actor???
Projects
Kirby Starship Game

I'm a newbie so I haven't done much.
User avatar
metaknight22
 
Posts: 25
Joined: Fri Jan 23, 2009 7:34 am
Score: 1 Give a positive score

Re: Problems with scoring

Postby metaknight22 » Sun Jan 25, 2009 10:06 am

Never mind. I got it. New problem. Which actor do I add the event to?
Projects
Kirby Starship Game

I'm a newbie so I haven't done much.
User avatar
metaknight22
 
Posts: 25
Joined: Fri Jan 23, 2009 7:34 am
Score: 1 Give a positive score

Re: Problems with scoring

Postby jimmynewguy » Sun Jan 25, 2009 1:24 pm

destroy actor plane

Code: Select all
score.textNumber += V;//insert number for V
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Problems with scoring

Postby metaknight22 » Mon Jan 26, 2009 12:11 am

Thanks for your help guys. :D
Projects
Kirby Starship Game

I'm a newbie so I haven't done much.
User avatar
metaknight22
 
Posts: 25
Joined: Fri Jan 23, 2009 7:34 am
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron