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?
n/a
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
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.
The intensity of something depends on how far it is away from the centre of the circle that it's from.
I=P/4πrē
I is the intensity
P is the effective power emitted by the source
r is the distance from the source to the object
Now, this is probably only relevant to light. But i'm sure you could adapt it so that the intensity you get could be worked into damage received, somehow.
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..