Hi,
How can I have objective/achievement system for my game? I have a simple fruit-ninja like game that the achievements will be, at least for start, simple things like in case of fruit ninja cut 5 bananas to more complex ones like do some stuff in a chain like cut a banana then a watermelon then a cucumber.
My guts tells me that I somehow should make a data structure for them and fill them based on game design. Then feed all these into a big table and have indexes on active ones. I’m not sure if it’s the case though.
And then after each event in the game, i.e. something interesting happens, I check it with the current objective and if it’s true, clear it out. This is the part that I’m most clouded: How to check for different criteria based on different objectives? For example, one time it should count cut lemons then it should watch a sequence of actions then it should watch for another event(s).
Thanks.