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 FarisGames · Jul 24, 2013 at 09:09 AM · 2djavascriptparticles

2D Smoke or Particle

Hello,

what i'm trying to achive is a smoke or a cloud that disappear after a second (like the mac dock when you move an icon out of it example picture)

the smoke or cloud appears when i enable it and after a second it disappear like the mac dock example

Thanks

PS: my game is 2D and using JS.

screen shot 2013-07-24 at 12.02.53 pm.png (14.4 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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by chris_taylor · Jul 24, 2013 at 09:20 AM

Not really sure what you are asking but im going to guess your asking if you should make your own "2D smoke" or use the particle system built into unity.

If by 2D smoke you mean making your own 2D particle effect then I would just make a particle effect with the particle system that is already there. If you need help with either one I suggest posting what you have tried that way it is easier for us to help you.

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 Imankit · Jul 24, 2013 at 09:34 AM

You can do this.. When you want to make this effect.. enable your cloud.. Move it up and then lerp its alpha to zero.. Or you can make an animation for that and call that animation

Example :

 public Transform cloud;
 //When you want your cloud to appear -
 
 cloud.gameObject.active = true;
 // To move it to a distance of 0.5f up
 cloud.transform.position = new Vector3(cloud.transform.position.x,Mathf.Lerp(cloud.transform.position.y,cloud.transform.position.y+0.5f,2f),cloud.transform.position.z); 
 
 //for disappearing your cloud in your disappear condition write
 
 cloud.gameObject.renderer.material.color.a = Mathf.Lerp(1f,0f,2f);


All these things should be in update

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

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

Related Questions

Particles - start speed curve doesn't work? 1 Answer

2D Sprite animation - How do I jump to the next frame? 0 Answers

How to detect if player made building is air-tight(2D) 1 Answer

How to stop a function and start a countdown in a 2D game? 1 Answer

Issue with my Teleport Script 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