The Daily Click ::. Forums ::. Klik Coding Help ::. How to?
 

Post Reply  Post Oekaki 
 

Posted By Message

Ge3z



Registered
  02/11/2006
Points
  3
2nd November, 2006 at 07:22:45 -

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

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
2nd November, 2006 at 07:55:39 -

Uh, be more specific? Maybe make a visual example of what you want?

 
Old member (~2004-2007).

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
2nd November, 2006 at 08:04:12 -

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:

Sqr(((X("First object") - X("Second object")) Pow 2) + ((Y("First object") - Y("Second object")) Pow 2))

 
n/a

Ge3z



Registered
  02/11/2006
Points
  3
2nd November, 2006 at 08:23:53 -

A visual example? like a pic? ^^

Its a topview racinggame. so it would look something like a green transparent cirkel.
Or many green transparent cirkels. ^^


 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
2nd November, 2006 at 08:39:39 -

...what?

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
2nd November, 2006 at 08:43:54 -

Heh. You're swedish, right?

A pic would be helpful, yes

 
n/a

Ge3z



Registered
  02/11/2006
Points
  3
2nd November, 2006 at 08:44:41 -

-.- should i post a picture?

Sorry about my english, its not very good.

I'll try one last time:

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?

No doubt about that ^^

Image Edited by the Author.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
2nd November, 2006 at 09:13:52 -

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.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
2nd November, 2006 at 10:37:24 -

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.

Maybe.

 
My signature is never too big!!!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
2nd November, 2006 at 12:22:17 -

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..

 
http://www.SilverNova.co.uk


SoldjahBoy



Registered
  25/10/2006
Points
  100
2nd November, 2006 at 12:25:49 -

LOL! Joe are you a physisisisisist or something? Damn dude

 
What's wrong with pillow shading? O.o

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
2nd November, 2006 at 12:41:45 -

Haha, yeah... I study A level physics.

 
My signature is never too big!!!
   

Post Reply



 



Advertisement

Worth A Click