View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:22 pm



Reply to topic  [ 4 posts ] 
 Pixel "Death Field" 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Pixel "Death Field"
If I spawn a pixel with a gun, and I attach this script
Code:
function Create(self)
self.StartX = self.Pos.X
self.StartY = self.Pos.Y
self.KeepVel = Vector(self.Vel.X,self.Vel.Y)
end

function Update(self)
self.Pos = Vector(self.StartX,self.StartY)
self.Vel = Vector(self.KeepVel.X,self.KeepVel.Y)
end


to it, it wouldn't move but it would keep it's velocity, right? Which means that even if it's not moving, it still has force, so if something runs at it, it will be damaged by the pixel?


Mon Nov 07, 2011 5:13 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Pixel "Death Field"
Yep.


Mon Nov 07, 2011 3:40 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Pixel "Death Field"
So I can create a wall of pixels that will kill everyone without being as laggy as putting

Code:
function Update(self)
for actor in MovableMan.Actors do
[Finding actors chunk]
ToActor(actor):GibThis()
end


instead?


Mon Nov 07, 2011 7:58 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Pixel "Death Field"
I see the future.

I see...

A blending machine...


Tue Nov 08, 2011 1:43 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.064s | 13 Queries | GZIP : Off ]