I want to make a cube, that when my flamethrower’s fire hits it, catches fire, burns away, changes texture, and finally breaks into pieces and those burn away. Sorry it seems complicated, but I want it to behave like a real burnable object. I dont know where to start with this. Please help!
Thanks!
I can help you get started. If you want to “make a cube, that when my flamethrower’s fire hits it, catches fire, burns away, changes texture, and finally breaks into pieces and those burn away.” start by:
-
Making a flamethrower that shoots
particles or objects that will
collide with a cube. -
Send a message to the cube
(SendMessage). -
When the coroutine is started:
Particle effect for fire, slowly tick
away health until the cube “dies”.
Theres a “dissolve” texture on the
wiki, i think. -
That will work. You can probably
change the color by changing
3 so that the cube darkens
when being burned. (maybe a percent
of health used to change color of
texture). -
Destroy the game object, but first
instantiate another effect
(particles, probably?) to show the
cube breaking apart.
Your best bet is to search UA for help with each bullet.