i need a radiation effect, but creating 200 object isn't that effective.
i also need it to be sub more health in the middel, and lesser health the longer from the object. i dont know how to do that. Some suggestions?
DaVince This fool just HAD to have a custom rating
2nd November, 2006 at 07:55:39 -
Uh, be more specific? Maybe make a visual example of what you want?
Yeah, can you be more specific about the radiation effect.
For the other thing, you should make the health lost relative to the distance from the source of the damage. You can calculate distance between two objects using Angle Calculator, or equivalent object. Or if you have MMF you can use this expression:
When the player shoots a rocket that collides with the background, it will be destroyed.
While destoroying, i will add some radiation. The problem is, i dont know how the radiation is supposed to be like. I've tried a lot of sollutions, but no sollution is really great. the more radiation, the more harm. is that better?
Axel gave you the distance formula. Use that to test when something is close enough to be harmed, and apply an amount of damage relative to the distance from the center of the radiation. The visual effect doesn't have to have anything to do with the actual application of damage this way, so just do it whichever way looks best. I'd use a single active with an ink effect.
I guess if you wanted a really bad but simple way of doing it - you could make an invisible "radiation" area in the shape of a circle (of a couple of circles, one for less damage and a smaller radiation circle for the higher damage), and if the object collides with the circle you lose health or whatever.
It's not the greatest way of doing it, but if the distance formulas are too much to get your head around you can always try this way..