In this part of the tutorial we will connect 2 boards together using an activation vector. Connected boards are those that a character travel between, up until now we have only had a single board to walk around on. By the end of this part of the tutorial we will have a pair of boards that the character can move between.
Start by using everything that you have learned up until this point to create a new board that looks something like the one below and then save it with the name "hall.board":
Now draw a closed vector around the door area, when you have finished drawing goto "Properties" ensure it is closed and change the type to "PASSABLE". The vector should then immediately change to a yellow colour, this tells use that it is a passable vector, meaning the character can walk through it. Passable vectors are useful for triggering events when character collides with them.
When sending a character between boards it is useful to know the exact tile coordinates that we want to have them appear at. We can get this information by enabling coordinates viewing on the board editor by going to View -> Show Coordinates. Tile coordinates start from the top left, which might seem counterintuitive but this is how computer screens work in general.
If you start up the game and walk towards the door you'll notice that absolutely nothing happens when you pass through the vector. This is because there is no event program associated with it yet that tells it to send you to the other board. To achieve this we are going to write a very simple program so goto File -> New -> New Program.
Then type exactly what you see in the image below into the code editor and save the file as "send_start_to_hall.js". All this very simple piece of code does is send the character to the "hall.board" to the tile position (x=4.5, y=18.5) and then it ends:
Now go back to the board editor, select the passable vector around the door. Under its properties set the "Event Program" to the one you just saved. If you start the game again and walk towards the door the event will trigger and you will arrive in the hall.