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 MRProproduction1 · Mar 18, 2013 at 05:50 PM · animationparticlesdoors

help in animation/code

I am try to make puzzle game were you need to find paper from book so in each level bit of the book what need to is how can make object when get colse to it it gose and the door open any thing will help thank you

Comment
Add comment · Show 2
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 murkantilism · Mar 18, 2013 at 06:05 PM 0
Share

I have no clue what you are asking, please clarify your question.

Are you asking "When I get close to a door, how do I make it play an opening animation"?.

avatar image MRProproduction1 · Mar 18, 2013 at 06:22 PM 0
Share

I am really sorry about that use my phone no I need script that when you go colse to object say cube you have to go close to it and the that object then will play door open animation and object be destroyed

I got object cube spin around but when get colse to it open the door and cube will be gone

1 Reply

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

Answer by murkantilism · Mar 18, 2013 at 06:30 PM

Attach a collider object to the player and the cube. Write a script that you will attach to the cube. The script should check for a collision with a game object with the tag "Player" or whatever your player object is tagged as.

Once the collision occurs, have the animation play using animation.Play();.

Then destroy the cube with Destroy(cube).

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 MRProproduction1 · Mar 18, 2013 at 06:39 PM 0
Share

sorry I did not now were to start thank you I put some research in to it

avatar image murkantilism · Mar 18, 2013 at 06:44 PM 0
Share

No problem, I updated my answer with links to documentation. Start your research with those.

If you feel this answered your question, don't forget to mark as answer.

avatar image MRProproduction1 · Mar 18, 2013 at 07:02 PM 0
Share

thank for your help but hit other pot hole but I reserch it be asking thanks

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

11 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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

How do i script a particle effect to start? 1 Answer

Can you fix my code? (Audio for doors) 2 Answers

open a animated door 3 Answers

Is it possible to manipulate Mecanim state machine / blend trees from scripting? 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