How to make object A open door A, and object B open door B?
Hi everyone, I'm sure this is a noob question, but I spent 15 minutes googling and searching the forums and couldn't find the answer.
I have a door, and I have an object that should trigger that door to open when the player touches it (let's call it a 'sensor'). I'd like several doors, each with its own specific sensor. I want to create each door and sensor combination within the event editor, rather than manually placing them in the frame editor. But I can't figure out how to 'link' the sensors and doors properly, so that sensor A will open door A, but not door B
This is what I've done so far:
- created several doors
- each door is an active object with "open" and "closed" animations
- created several sensor objects
- each door and sensor has an alterable value called "ID"
- the "IDs" of the doors are 1, 2, 3....
- the "IDs" of the sensors are also 1, 2, 3
- at the moment, when I touch a sensor, it opens ALL of the doors (ie. changes their animation state)
However, I don't know how to create an event that will check for the ID of the sensor, and open the door with the corresponding ID, while leaving all other doors intact. The logic is dirt simple, of course, but I just don't know how I go about coding it in event editor.
Thanks in advance.
PS - by the way, how do you get an avatar on these forums? When I go to "settings\edit avatar", it only has one option, which is "do not use an avatar"