I have a simple 'use key to unlock door' scenario for my game. But I can't figure out how to get the event to work the way I want.
Basically, if the player interacts with the door if they have the key or not, text will appear saying "The door is locked." What I need is the player to open their inventory and use the item from the item menu while standing in-front of (and looking at) the door to unlock it. I can't figure out how to get it to work though. I've looked around for tutorials or examples but I can't find anything.
I know I need the item to have a common event attached to it, but I have no idea how to call other events from the items common event, along with getting the players position and looking direction to make sure it is correct.
Basically, if the player interacts with the door if they have the key or not, text will appear saying "The door is locked." What I need is the player to open their inventory and use the item from the item menu while standing in-front of (and looking at) the door to unlock it. I can't figure out how to get it to work though. I've looked around for tutorials or examples but I can't find anything.
I know I need the item to have a common event attached to it, but I have no idea how to call other events from the items common event, along with getting the players position and looking direction to make sure it is correct.