Quote from: Matti on Thu 11/01/2018 09:32:12
Do you really only want the player to allow to interact with the door when they stand next to it or do you just want the character to walk to the door before opening it? If it's the latter then you can just set the WalkToPoint in the door hotspot's property pane. Alternatively you could code it yourself using a blocking walk command:Code: ags function hDoor_Interact() { player.Walk(282, 173, eBlock); // or whatever the coordinates should be player.ChangeRoom(6); }
Thank you ! This was exactly what i was looking for.