Haier In this lecture, we are going to implement a simple room boundary. Basically, we don't want the player to be able to go outside the room. So I'll start by opening our player. I click on Add event go to other and add the intersect boundary event. This event runs whenever the installer touches the boundary of the room. Inside it allows them to point action or set the x to x previous and y to y previous experience is a built in variable that stores the instances exposition from the previous step.
And y previous tours the vibe from the previous tab. So basically, these variables store the last position of the clusters before you moved it in the Koreans tab. If you start typing experience, you can see that it shows up in a list as a built in variable then you can click on it to select it. So whenever the player touches the boundary of the room, it will move back to its previous position so it won't be able to go out of the room, now around the game and you can see that I'm unable to go outside the room. Now let's move on to the next lecture we will add a scoring background