Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 tintintin21 · Jun 26, 2016 at 06:01 AM · 2d gameexplosioneffectsfirebomb

bomb effect

I would like to ask something about bomberman-like game. I've got a problem about the bomb that the player produces. I can destroy it after a few seconds but I have no idea on how to put the fire effect and destroy the bricks around the fire.. thank you so much for the help. I think there are other questions about this matter, but nothing helped me because I'm just a beginner and I cannot understand some of their codes. thank you so much..

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
0

Answer by Aggerwal · Jun 26, 2016 at 09:12 PM

Before destroying the bomb, the bomb code could spawn four fire objects around the bomb and those could have code keeps spawning more fire in the direction they are facing or just stop when they hit a wall. You could do these types of checks by using something called raycast. Then to destroy bricks, the brick object code should check whether the fire objects has collided with them and destroy themselves. Either one of the fire or brick objects should have a rigidbody component and the other one a mesh collider for the collision to be picked up.

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 Landerk · Jun 28, 2016 at 04:51 AM

So I think Unity has a premade Particle system for fire and explosion...I could be wrong there, but it wouldn't be too hard to make anyway. For fire and explosions I will always recommend using a particle system. You'll have to call it to play on destruction of the bomb object. As for breaking down the "burning" object, have 2 or 3 extra game objects...for example, your regular undamaged brick, slightly burnt brick, roasted brick, pile of ashes. That might be a bit much but you get the idea. Then just switch those meshes out over the lifetime of your particle animation and you'll get a believable burning effect.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

blow up bomb when it collides with fire 1 Answer

What's the best way to do this? 1 Answer

i want to add fire shot at enemy gun explosion 1 Answer

How to confirm the vertex of a mesh that mouse in and change its texture 0 Answers

space shooting: same exolosions 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