Data Realms Fan Forums
http://forums.datarealms.com/

Damage field
http://forums.datarealms.com/viewtopic.php?f=75&t=15835
Page 1 of 1

Author:  war_man333 [ Mon Jul 13, 2009 11:54 am ]
Post subject:  Damage field

Damage fields that do 10 damage every second, they come in 3 sizes:

Tiny Concrete Size, 1X, 4X

Sprite doesn't matter much, maybe just a slightly different version of the normal 'Empty' Bunker Bit.

Thank you in advance.

Author:  Grif [ Thu Jul 16, 2009 3:53 am ]
Post subject:  Re: Damage field

function Create(self)
self.hurttimer = Timer();
end

function Update(self)
self.hitbox = Box(Vector(self.Pos.X - 48,self.Pos.Y - 48),Vector(self.pos.Y + 48,self.Pos.Y + 48));
for actor in MovableMan.Actors do
if self.hurttimer:IsPastSimMS(1000) == true then
self.hurttimer:Reset();
if self.hitbox:WithinBox(actor.Pos) == true then
actor.Health = actor.Health - 10;
end
end
end
end

Author:  war_man333 [ Fri Jul 17, 2009 8:30 am ]
Post subject:  Re: Damage field

Thanks.

Author:  asura [ Fri Jul 17, 2009 8:49 am ]
Post subject:  Re: Damage field

Hm.. :pipe: Maybe it will work..

please click and play with my pet. :arrow: :dead:

http://www.youtube.com/watch?v=YersIyzsOpc


Don't do this. We will subvert you.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/