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
0
Question by Ellis · Feb 07, 2014 at 09:23 AM · movement scriptrtsclick to move

RTS Minimap Movement

I'm doing a rts game and I'm currently working on getting the camera working good.

Now, what I want to do is that when you click somewhere on the minimap camera showed on the screen then the main camera should move to that position.

How can I make this?

//Elis

Comment
Add comment · Show 3
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 JasonC001 · Sep 25, 2014 at 02:13 AM 0
Share

I'd love to have this too. I'm surprised no one has created an interactive RTS $$anonymous$$imap script for sale on the Unity Asset Store, including left-click, drag, and right-click functionality. It's pretty much a necessity for RTS games, and I'd totally buy it. And it's absolutely impossible to find complete code for this kind of thing online. I'm finding a few different places online where people are asking similar questions, and they're getting/giving half-answers, so unless you're a coder, you can't use it. $$anonymous$$ind of frustrating. EDIT: I've since figured out how to do this. Not frustrated anymore. Ins$$anonymous$$d of looking for how to move a camera, I looked for how to move a regular object with a mouse click, and actually found good info. Once it worked, I swapped the object with a camera and Done. :)

avatar image Baste · Sep 25, 2014 at 08:21 AM 0
Share

Have you tried doing the obvious thing? Like checking where you click on the $$anonymous$$imap, transform those coordinates to world space coordinates, and moving the camera?

avatar image JasonC001 · Sep 26, 2014 at 11:26 AM 0
Share

Baste, of course the theory behind what you're saying is "obvious." But when this is only your 5th day of ever trying to code anything, ever, in your entire life, the HOW is kind of challenging. But I'm learning.

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.

Follow this Question

Answers Answers and Comments

20 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

Related Questions

Idle Animation and Hold to Move 0 Answers

How to get the ground position near the gameObject clicked? 0 Answers

What's Wrong With This Script? 1 Answer

Getting nowhere with my click to move script 0 Answers

Click-and-Move System: Unit flies upward on slopes 0 Answers


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