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 user-3061 (yahoo) · Jun 16, 2010 at 02:52 AM · animationai

Couple of questions regarding AI scripts and animation?

Im a beginner to unity3d, and dont have much knowledge about animation or scripting.I have a couple of questions to ask regarding scripting and animations.

1.Could anyone provide/teach me a script to make an enemy follow the target and attacking it with melee, as im working on a game, with enemies that have drills attached o it, so damage will be inflicted as the player comes in contact with it.

2.I needed a script that can make an animation start while I hold a button, and when I release it, the animation stops, and a new animation plays. I've been working on this a whole day, and cant seem to find a suitable script for it.

Any help would be appreciated, thanks alot!

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 spinaljack · Jun 16, 2010 at 03:02 AM 0
Share

That stuff you can find in the many wonderful unity tutorials in the resources page. Take a look at the FPS tutorial and the 3D platformer one, they should answer all your questions.

avatar image jashan · Jun 16, 2010 at 05:15 AM 0
Share

In general, it's usually a good idea to post separate questions as separate questions ins$$anonymous$$d of combining them into one bigger question. So this would ideally be one question on the AI scripts, and another one on the animations. That'll likely get you specific answers quicker.

avatar image Arbbot · Jun 29, 2010 at 10:47 PM 0
Share

I agree. If you take a look at the Unity's 3D Platform tutorial and the FPS tutorial you will get introduced to AI concepts and will be able to take those AI scripts as a base for your own game. Unity3D is one of those rare tools with a huge community and a lot of documentation and tutorials. Go ahead and take advantage of them !!!

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by jashan · Jun 16, 2010 at 05:12 AM

AI is "pretty advanced stuff", so when you don't have much knowledge with scripting and animation, it would probably be a good idea to start getting a good feeling for scripting and once you feel comfortable with basic scripting, move on to the more advanced stuff (like AI and scripting animations). Doing it the other way round (doing the advanced stuff first) will likely just result in frustration.

To start with scripting, you might follow the advice in this question. There's a few basic programming tutorials linked there, so that should get you started.

Once you're got those scripting basics covered, you'll find the tutorials that spinaljack mentioned and a few more here. I'm not sure how easy it would be to go through those tutorials with little programming knowledge, as those are not really programming tutorials. So in any case I'd still recommend doing pure programming tutorials first and those tutorials second.

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 an animation play for AI? 0 Answers

I'm still having Trouble with this AI script 2 Answers

Unity3D AI using animations 1 Answer

Enemy Animation Freezing in first frame 2 Answers

Animay play in editor 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