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 iMatthewCM · Aug 10, 2014 at 05:44 AM · animationparticle systemobjects-movement

How do I move an object from A to B, then another object from A to C?

I have absolutely no idea what the code would look like for something like this. I'm just making a simple scene animation for a theatrical production. I want to be able to press Space, have a fireball come down and hit a building. Press space again, another fireball comes down and hits another building.

These objects are already in the scene, and they are "moving" where they are (they look like fire...it's a particle system)

Additionally, once Fireball1 reaches the destination, I want Fire1 to start playing and keep playing (it's fire on the building), and once Fireball2 reaches the destination, Fire2 and Fire3 should start playing, and keep playing until the application closes.

For reference, here's a screenshot of the buildings on fire. The fireballs will be coming from the right and moving to the left.

alt text

Then just for your knowledge for any needed variable names, here's again what everything is called:

The two objects that need to move: Fireball1 Fireball2

The three fires that need to start once the Fireball animation is done: Fire1 Fire2 Fire3

Any language is fine, although I'm most familiar with C#

Please help :) I'm pretty much stuck here....and I think I'm pretty damn close!

phpxbey2opm.jpg (35.2 kB)
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

Answer by rutter · Aug 10, 2014 at 05:47 AM

You might look into a tweening library. Personally, I'm a fan of iTween, but there are others, including HOTween, GoKit, and so on.

In general, these libraries will allow you to set up objects to translate, rotate, scale, or otherwise transition from one state to another, over a configurable period of time. Some of them can even manage volume, color, and so on. Most of them allow you to "chain" events, so that one action completion leads to a function call (where you can queue up more actions).

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

how can i make my particle system follow a game object without having the particles preform the game object animations 0 Answers

ParticleSystem or play a video? 1 Answer

Smoke Particle Continuous Not Flowing 0 Answers

Is it reasonable to use OnBecameVisible for controlling animations, lights and particle systems? 1 Answer

How can I make animated background image? 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