View unanswered posts | View active topics It is currently Wed Jan 08, 2025 5:50 am



Reply to topic  [ 3 posts ] 
 Door sensors 
Author Message
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Door sensors
Alright, so here's the deal. Double sized tunnels need big doors, yes? I've made said doors, but they don't open all the time. How do you set up the sensors to act correctly, and how do they work? From the variables, a sensor seems to be a line (or a ray) from StartOffset to SensorRay, and if any actor of the same team intersects said line (or ray), the door is told to open. Is this true, and if so, how do you set the detection length of the sensor?


Sat Mar 08, 2008 5:18 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Door sensors
That's true.

The initial ray offset is offsetted from the same point as the sprite offset.

The EndRay offset, or whatever it is, is offsetted from the INITIAL RAY OFFSET. Thus, if you have a ray at 10,0, for example, and then set the second offset as -48,0, then the line will be 48 pixels long, and going left due to being negative.


Sat Mar 08, 2008 5:38 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Door sensors
Cool, thank you. Works fine now.


Sat Mar 08, 2008 5:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.055s | 15 Queries | GZIP : Off ]