I've recently started writing a little game. My problem arrived when im about to create a world loader(level loader). More specifically when i want to persist world user interaction if i could called it ("ai invoking "). Image a sidescroller game, the player moves forward and some enemy appear with an specific task. How can i persist those behaviors and invoke them after loaded? i mean which mechanism could i use to handle level predefine events.
I hope i made it clear.
Help would be appreciated