• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
-2
Question by saxobroko · Feb 07, 2017 at 11:38 AM · scorescore system

I would like a score counter pls?

I'm making a true or false game, I would like someone to make a script that counts every time a person gets the question right E.g; Mars Is Red would be true so +1 Point for the player. i would like instructions on how to get it to work if necessary. Thanks

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Chubzdoomer · Feb 07, 2017 at 11:55 AM 0
Share

Have you already tried incrementing an integer value and showing it on the screen via UI text?

avatar image saxobroko Chubzdoomer · Feb 08, 2017 at 06:01 AM 0
Share

No i havent

avatar image Rickywild · Feb 07, 2017 at 12:34 PM 0
Share
 private int correctAnswers = 0;
 private int wrongAnswers = 0;
 
 //Got correct answer
 correctAnswers++;
 
 //Got wrong answer
 wrongAnswers++;
 
 //Or do away with wrong answers and do this ins$$anonymous$$d
 correctAnswers--;


You need to give some context into where you'd like the logic to be and behave, can't offer any more help otherwise.

avatar image saxobroko Rickywild · Feb 08, 2017 at 07:04 AM 0
Share

I just want a score to go up every time a player gets the question right. Thanks btw..

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

91 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem with ScoreBoard in Ping Pong game 1 Answer

How to add scoring system with this type of codes? This is a True or False Game. Answers are very much appreciated. :) 0 Answers

Help With Score C# Error CS0131 1 Answer

I need to at each OnTriggerEnter added a point, but it only adds one point. Please Help! 1 Answer

How do I make a score system? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges