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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
-1
Question by VorteX Studios · Feb 18, 2014 at 04:27 AM ·

simple RTS unit movement script help

Hello

I am trying to make the player select a object and make the object move to were the player clicked. Im regular,somewhat novice to scripting,i already searched for answers,but no solutions at all to my problem.im not that familiar with raycasting,i definetly dont know nothing about raycasting.lol So how can i make that? Remember im very new to Unity.

Thanks in Advance

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 getyour411 · Feb 18, 2014 at 04:29 AM 0
Share

2D or 3D? How do you move things - transform.translate, charcontroller, physics, etc?

avatar image VorteX Studios · Feb 18, 2014 at 05:21 PM 0
Share

3D physics,there are very little tutorials about RTS games in unity,some are very old,it´s kinda dificult to learn RTS in unity. my problem is that i dont know were to start,maybe using vector?

avatar image thaiscorpion · Feb 18, 2014 at 06:31 PM 1
Share

An RTS can be complicated to create, if you are new to unity it's going to be very frustrating for you if you start with an RTS. Try making something a lot simpler and then by the time you have finished that you will have learn enough to be able to start making your RTS.

But if you want to start with this you are deffinitly going to have to learn how raycasting works, try checking out the unity reference page about raycasting and make a few simple raycasts to detect objects under the mouse. I'm guessing you want to be able to select varous units at the same time. So you would need to create a 'Drag' function to drag with the mouse and create a selection box.

Then moving the units will require you to create paths for each unit, I use iTween for paths I recommend you try it, it is free in the asset store and there are lots of examples on their web page.

avatar image VorteX Studios · Feb 22, 2014 at 10:08 PM 0
Share

thanks,learned a bit raycasting,looked at some assets,and finally! and yeah RTS is dificult to do in unity,but after some coding we can find our own answer!

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

manually installing unity 3d 1 Answer

my game is really slow? 2 Answers

Decal script not recognized by bullet marks script 0 Answers

[Network]When a barrel was explored another people can't see! 0 Answers

Unity Web Player Bug or Error on Fusion Fall??? 6 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