So, this is something I've been trying to figure out a solution for.
Let's say the player goes into a room and there's an NPC there. I want to have it so when the player talks to the NPC, it can trigger a cutscene. This cutscene would have the NPC and the player moving around during it.
I know how to make all that happen. The problem is how do I account for the direction that the player interacts with the NPC from? Like, if the player interacts from the right of the NPC, but then the cutscene at some point tries to make the NPC move to the right, he won't be able to because the player is there. The cutscene will then pause.
Ideally, I'm looking for some way to make it so the player interacts from whatever direction, and then is moved to a tile that I decide before the cutscene kicks off.
Only way I can think is that when the player interacts, I could fade the screen out, transfer the player to the new location and then fade it back in. That wouldn't be as nice or clean though.
Let's say the player goes into a room and there's an NPC there. I want to have it so when the player talks to the NPC, it can trigger a cutscene. This cutscene would have the NPC and the player moving around during it.
I know how to make all that happen. The problem is how do I account for the direction that the player interacts with the NPC from? Like, if the player interacts from the right of the NPC, but then the cutscene at some point tries to make the NPC move to the right, he won't be able to because the player is there. The cutscene will then pause.
Ideally, I'm looking for some way to make it so the player interacts from whatever direction, and then is moved to a tile that I decide before the cutscene kicks off.
Only way I can think is that when the player interacts, I could fade the screen out, transfer the player to the new location and then fade it back in. That wouldn't be as nice or clean though.