Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Andrey Kalganov · Jun 08, 2010 at 07:14 PM · mousecontrolturn-basedstrategy

Turn-based strategy game

Hi, I'm new to the Unity and I'm thinking of making a TBS game. The combat should look like the good old X-Com: UFO Defence. The questions I've encountered are:

1) How do I seperate my terain into squares(hexes)?

2) How do I highlight them, when the mouse is over it?

3) How do I understand on which square the mouse was on, when the player pressed left mouse button.

Thank you :)

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 Ricardo · Jun 08, 2010 at 09:25 PM 0
Share

Andrey, I'd recommend you ask these as independent questions, and with a more specific title that helps people find them.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Envy · Jun 08, 2010 at 09:22 PM

I have no idea how to implement this, but I'll give a method.

1 You could have it show parts of the terrain mesh or you could manually make a grid that conforms exactly to your landscape.

2 You switch the shader when the mouse is on it. I saw something like this on the gun scripts demo on FPS Constructor - Weapons (Beta) where you hover and it glows. 3 I'd use a collider on all of them, but thats incredibly inefficient.

Comment
Add comment · Show 3 · 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 bowditch · Jun 09, 2010 at 02:16 AM 1
Share

@$$anonymous$$vy: Link does not work as html. Needs to be htm.

http://www.dastardlybanana.com/FPSConstructorWeapons.htm

avatar image Cyclops · Jun 09, 2010 at 01:53 PM 1
Share

@$$anonymous$$vy (and @bowditch), I fixed the link - and also added a Name to it.

avatar image Envy · Jun 14, 2010 at 01:04 AM 1
Share

@you guys, thanks.

avatar image
0

Answer by Ozale · Jan 23, 2011 at 12:01 AM

G'day, I'm also slowly building a TBS system, but I'm only now putting the polishing touches on the camera control script. Above is right, you'll need to build a state machine, but it's definitely a project Unity can handle.

I've worked with turn-based gameplay in Flash before, and can say it'll be easier to do things like change the controls and camera behavior the player when it's not their turn, detect line-of-site (if you hope to replicate UFO's LOS system) and implement rudimentary physics.

I'd be curious to hear how your project is going, email me sometime!

Cheers,
Stu

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

No one has followed this question yet.

Related Questions

How to make camera position relative to a specific target. 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

SIDE SCROLLING MOUSE CONROL HELP! 0 Answers

Why Is OnMouse Not Working Correctly? 1 Answer

Is in game environmental changes possible? 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