I’m working on a 2d adventure game ( as in the old school point and click games) and I am wondering what is the best way to approach scripted animated events in the game.
For example, when a scene starts, during the ‘cinematic’ part, I want to have 2 npc characters enter the scene, have a chat and leave. And later during the game , when you trigger an event (by picking up an item) , I want them to walk into the room again .
What is the best way to handle these scripted events ?
For example, I guess I can store hardcode the animation in a datafile , like : move to a, play sprite animation aa, move to b etc. and then play them as needed. But what I’m not sure with that method is how to overlap different scripted actions.
So is there a better method ?
Sorry this is a bit of a broad question