Original Post
I'm working on a shooter style game, and I am wondering what others have done to tackle the problem of what animation to play at any given time.
Like if the user is running forward, jumping, shooting, and taking a hit all at almost the same time, how do I figure out what animation should be played?
I don't really like the idea of a long massive iteration to check constantly, so I figure there has to be a better way out there. I was thinking of trying to use a forward chaining inference engine, but I am having a little trouble understanding how to implement it, and think it might be a bit of over kill.
Some common examples... running forward and strafing, while shooting, or running and jumping, strafing and jumping, running and shooting, etc. There has to be a way to determine exactly what animation to play at any given time.
Like if the user is running forward, jumping, shooting, and taking a hit all at almost the same time, how do I figure out what animation should be played?
I don't really like the idea of a long massive iteration to check constantly, so I figure there has to be a better way out there. I was thinking of trying to use a forward chaining inference engine, but I am having a little trouble understanding how to implement it, and think it might be a bit of over kill.
Some common examples... running forward and strafing, while shooting, or running and jumping, strafing and jumping, running and shooting, etc. There has to be a way to determine exactly what animation to play at any given time.