Data Realms Fan Forums http://45.55.195.193/ |
|
Door sensors http://45.55.195.193/viewtopic.php?f=1&t=10560 |
Page 1 of 1 |
Author: | Duh102 [ Sat Mar 08, 2008 5:18 pm ] |
Post subject: | 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? |
Author: | Grif [ Sat Mar 08, 2008 5:38 pm ] |
Post subject: | 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. |
Author: | Duh102 [ Sat Mar 08, 2008 5:50 pm ] |
Post subject: | Re: Door sensors |
Cool, thank you. Works fine now. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |