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 Noah-1 · Jan 11, 2012 at 09:27 PM · systemattackdetect

Attack system?

Helloo guys, well I am currently working on an attack system for my game but I want to make it as simple as posible (keep things simple is very important for me) I have a couple of ideas like adding a detection range for attacks, if the enemy comes and play its attack animation close to my character, my health will go down (same thing with enemies) other way would be to give colliders to the swords of my characters and detect when they hit each other but I think that would be harder to code.

I just want to ask for other ideas or ways to implement this?

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

1 Reply

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

Answer by aldonaletto · Jan 11, 2012 at 10:42 PM

I answered a question some time ago about a simple melee attack: http://answers.unity3d.com/questions/193996/melee-combat.html
There's another question with a trigger attached to the weapon: http://answers.unity3d.com/questions/181106/sending-a-sendmessage-to-a-completely-different-ga.html
NOTE: This one was designed to be attached to the enemy's weapon, thus it checks if the target tag is "Player"; to hit enemies, you should compare the tag to "Enemy" or whatever tag you use to identify them.

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 Noah-1 · Jan 11, 2012 at 11:15 PM 0
Share

thank you aldonaletto, I have seen tour profile and seems that you´re really good at program$$anonymous$$g I feel Im good but I need to learn a lot more, so can you give me any tips ? or how did you become the programmer youre now? books, intrernet, courses? time using Unity?

avatar image aldonaletto · Jan 12, 2012 at 02:27 AM 1
Share

Thanks for the nice words! Well, I've got a lot of experience program$$anonymous$$g in other areas, but started working with Unity only about 18 months ago. What really made the difference for me was UA - answering questions here is the best thing to exercise the brain: I'm constantly checking the docs or googling around for physics, math, algebra, geometry, program$$anonymous$$g techniques etc.
About books, I suggest Beginning OpenGL - the 3D rendering concepts it shows are valuable even if you don't ever use the GL class in Unity.

avatar image Noah-1 · Jan 12, 2012 at 02:40 AM 0
Share

thank you very much!!

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

Attack Script 1 Answer

Particle system won't stick to player after shoot 0 Answers

Hi what aproach would you condsider to make this kind of attack system,video included.J 0 Answers

Accessing local system ( File Browser ) 2 Answers

help with goal detection system,Goal detection systems not working 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