How to create a scripted sequence

Posted by igrad on Game Development See other posts from Game Development or by igrad
Published on 2014-06-11T03:24:12Z Indexed on 2014/06/11 3:48 UTC
Read the original article Hit count: 185

Filed under:
|

Like countless other video games, I'd like to have scripted sequences in my game. Character 1 says something, the player replies, then a rock falls, that sorta stuff. I could find a way to do it, but I would like to use a common method, assuming there is one.

My current thought is to have a separate file for each level of the game that contains all the possible scripted actions for that level. When the corresponding trigger is activated, the function is called. I think early Call of Duty games (up to CoD4) used something similar, but I'm not entirely sure.

© Game Development or respective owner

Related posts about c++

Related posts about sdl