Dinamic Door/Gate switches

1
  • 24 favourites

Attached Files

The following files have been attached to this tutorial:

.capx

dinamic-door-gate-switches.capx

Download now 173.77 KB

Stats

3,193 visits, 5,038 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Hello, this is my first tutorial. It's about doors and switches. It's very simple but I hope you find it useful.

First we have to create our doors and switches.

We will add to our doors an instance variable called "doorId" that will identify each door or group of doors.

Then we will add to our switches an instance variable called "targetDoor" to identify which doors will be open with each switch.

Then we have to go to our events sheet and:

Add Event

System

Pick by comparison

and fill the form with the following params

Here's how the event will look

This is going to pick all Door instances by the value of "doorId" that matches the value of the variable "targetDoor" on the Switch object that was activated by the player and destroy them.

And that's it. I think I'm not forgetting anything. As I said before is pretty straightforward.

Feel free to correct me if anything could get better. Sorry for my English, I'm a little rusty.

.CAPX

dinamic-door-gate-switches.capx

Download now 173.77 KB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!