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 Niavart · Jun 18, 2015 at 07:10 PM · rangetower-defensetower defensetower

Showing Tower's range in game

Hello,

I'm looking for a way to show in game the range of my tower (I'm making a tower defense). I tried adding cylinder to it and setting his height to zero to make a circle but I don't see any way to make it visible in game...

I looked over internet for solution but either links are broken either it's not what I want ><

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 Oribow · Jun 18, 2015 at 07:22 PM 0
Share

Althought your Question is not covered in this set of Tutorial, but building a Towerdefense Game from scratch is well covered. Also its very beginner friendly. https://cgcookie.com/unity/cgc-courses/unity-tower-defense-course/

3 Replies

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

Answer by Ricna · Jun 18, 2015 at 10:22 PM

Yes, you can use a cylinder with height = 0, as in the attached image... But you need to use a perspective cam. Maybe is your problem. Anyway, the lights don't help to you see the correctly colors in these cylinders.

I suggest to use at least 0.0001 in the height to get the desired color.

Another solution is to use a texture with alpha channel to looks like a circle, then you can add any collider as you want in the texture.

alt text


screen-shot-2015-06-18-at-70729-pm.png (103.5 kB)
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
avatar image
1

Answer by Niavart · Jun 21, 2015 at 11:02 AM

I resolved my problem which was pretty stupid... I created a cylinder but It was too little forme to see it and it was under my tower. I tried to change the Raduis but it had no effect. But to ake the circle/cylinder, I needed to change the scale ^^'

Everything is working fineT, thanks for helping! :) I just need to find a correct shader (a single circle, tansparent in the middle)

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
avatar image
0

Answer by Xarbrough · Jun 18, 2015 at 09:12 PM

Well, a 3d mesh with height 0 is not visible, but one with a very small height is.

Instead of a cylinder you should use a plane with a texture on it or maybe even better, a sprite. You can then scale the sprite to the correct size, enable/disable it or even fade it's color alpha in and out. This will give you pretty good results in most situations.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

An another problem - Tower Defense GUI ver.2. 1 Answer

What is the procedure of spawning enemies in each round ? TD games 1 Answer

Tower Defense tpwers follow player untill i klick 1 Answer

How to implement fast forward feature in a tower defense game? 1 Answer

Tower defense blender grated tower get wird when i use destroy 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