|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Door sensors
Cool, thank you. Works fine now.
|
Sat Mar 08, 2008 5:50 pm |
|
|
|
|
Page 1 of 1
|
[ 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
|
|