You want to create a game? You to add doors to your game? You do not know how to connect door wings with door openers?
Here is the ready-to-use solution for you:
Monster’s Door Control
What can Door Control do for you?
You do the artistic part:
- create one or more openers (or closers). You add some minor logic to trigger the door open and close operations.
- create one or more door wings. You add some minor logic to perform the animation according to your needs (yes, you are the one who knows how the door wings should be animated ;)).
You connect the parts with the Door Control … done.
The Door Control distributes the door requests from the openers to the wings. You can have as many openers, closers and door wings as you like. But one door control for each single door.
Check this video guide to see how easy this is:
A door wing needs a string property named “door request”.
It should react on these values:
- open - which is set when the door should open
- close - which is set when the door should close
A door opener/closer should trigger a Python controller with on of these BGE entry points:
- door.requestOpen - to trigger a door open (all sensors should be positive)
- door.requestClose - to trigger a door close (all sensors should be positive)
The roots (top parent) of the door wings, door openers should be parented to an instance of Door Control. Door Control will distribute the requests from the openers to the parented door wings.
(written in 2.68a)
I hope you like it
version 1.1: with documentation strings
version 1.2: allowing linkable doors with additional openers - with video tutorial
version 1.3: safety sensor to prevent closing if blocked - with video tutorial
version 1.4: status feedback (e.g. for elevator lights) - with video tutorial
version 1.5: toggle door (open and close by the same signal) - with video tutorial
- door modelling contest
- door controller programming contest