Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by ElenaMegan · Aug 07, 2015 at 04:09 PM · programmingmathkeyboardpuzzle

How to create keyboard-input math puzzle?

I want to create a puzzle casual math game for kids, in a similar style like 'The Four' game in the AppStore and Google Play. 'The Four' is the reference for the game.

Basically, the gameplay is like this:

1) You have to enter the answer in a math equation (addition, subtraction, division and multiplication) by typing the numbers.

2) If you typed in the correct number, a point will be added to the score. Then, the question will changed into another random equation and so on until the time goes out.

  1. If you typed in a wrong question, the question will remain the same until you input the right question.

4) The game objective is to get as many points as they can until the timer goes out.

So far, I managed to grab the script for the timer, but I had no idea how to program the main gameplay and place a Unity GUI on it. If anyone can please help with the programming, then that would be helpful. The programming has to be done in #C.

Also, bonus request if we can fit in any countdown timer on all of this.

Comment
Add comment · Show 1
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 ElenaMegan · Aug 07, 2015 at 08:30 PM 0
Share

It's fine! Thank you for the theiry. I'll trymy best to implement this on the game.

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by allenallenallen · Aug 07, 2015 at 04:29 PM

Basically, you are asking for someone to make all of the scripts for you. I'm sorry but this isn't how we handle things here in Unity Answers. We can give you the theory and design of the code but we can't give you the code.

  1. Use an Input Field for the player to type in the answer.

  2. Use a button that the player has to press to check if the answer is correct. If it is, go to the next question in the list/array.

  3. If not, clear the answer box and tell the player to try again.

  4. Once the timer hits zero, go to a new panel or just take away the Input Field.

Countdown timer: (Please do some research on Unity Answers first because most of your answers have probably been already asked.) http://answers.unity3d.com/questions/11939/count-down-timer.html

Comment
Add comment · Show 1 · Share
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

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Drawing a Mandelbrot Set problem 0 Answers

Make something arrive at position in exactly X seconds? 2 Answers

Find Vector3 perpendicular to Vector3 A in direction of Vector3 B 1 Answer

Simultaneous Keyboard Input From Different Keys 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges