View unanswered posts | View active topics It is currently Thu Dec 26, 2024 9:14 am



Reply to topic  [ 4 posts ] 
 Damage field 
Author Message
User avatar

Joined: Sun Nov 11, 2007 1:49 pm
Posts: 785
Reply with quote
Post 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.


Mon Jul 13, 2009 11:54 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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


Thu Jul 16, 2009 3:53 am
Profile
User avatar

Joined: Sun Nov 11, 2007 1:49 pm
Posts: 785
Reply with quote
Post Re: Damage field
Thanks.


Fri Jul 17, 2009 8:30 am
Profile
User avatar

Joined: Mon Jul 13, 2009 11:05 am
Posts: 10
Location: Republic of Moldova
Reply with quote
Post 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.


Fri Jul 17, 2009 8:49 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.324s | 14 Queries | GZIP : Off ]