• 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
Question by Very Confused · May 09, 2011 at 11:11 PM · gridselectiontextbox

Selection script and text box input

Basically, i have this checkers game and i dont know how to script it. All i need is a script that recognizes when the player clicks on a piece, then a text box to come up allowing the used to input numbers (positive numbers only) and have the piece move there on the board. For example, click the piece at 2,3 and type in 5,7 and it moves to 5,7. I have NO idea how to do this so any help is greatly appreciated. It does NOT have to follow the rules of checkers, i basically just need working selection, grid, and input scripts. Ive been looking for them for a while, but with no luck.

I also need this ASAP! So anything you can do to help is GREATLY APPRECIATED!!!

Comment

People who like this

0 Show 2
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 Jesse Anders · May 10, 2011 at 03:05 AM 0
Share

Is this for a homework assignment of some sort?

avatar image Very Confused · May 10, 2011 at 11:04 PM 0
Share

yes, its a big project and i have everything done but the scripting. Without scripting, i can fail the class. And no one in the class knows how to script at all. So as you can see, the class and I are in some trouble here --

1 Reply

  • Sort: 
avatar image

Answer by Jesse Anders · May 11, 2011 at 12:09 AM

I can't help but ask the obvious question: Why was the class given an assignment involving scripting if no one in the class knows anything about scripting? :-|

As for your question, you might get the help you're looking for here, but I think this kind of question often fairs better in the forums than on Unity Answers (if only because the forum format is more conducive to follow-up questions and answers).

What I would do though is start at the very beginning. Do you know how to detect when an object has been clicked on? If not, I'd start a new thread either here or on the forums addressing that specific question, and someone should be able to help.

Comment

People who like this

0 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
avatar image Very Confused · May 11, 2011 at 01:12 AM 0
Share

Ill do that ASAP, thanks. And i know, our teacher is kinda crazy and expects us to do the impossible...

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Creating an Interactable Grid for Tactics Game (C#) 1 Answer

How to create a 14 by 12 grid, depending on screen size? 1 Answer

What is wrong with my code? 1 Answer

Checker Board Grid 0 Answers

Make a turret shoot multiple targets 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