Download

How to create an achievement system

Hello guys, I have to make an offline system (offline and an ugly one, I’m learning, not Steam or anything like that, even a consle output is ok).

So the thing is, I have some monsters in my map and for example I want an achievement to show when I’ve killed n number of those monsters.

My idea is to make something like an Achievement manager that is continusly checking if a variable of its own (the monster counter) is 0, This variable would be updated by the monster class when I call its Destroy() when it’s killed.

Is this a good approach? I’m not really convinced about it.

Thanks

The basic advantage of programming is that you can do things as you want.
Your question is about the design. so how you do it depends on you.

Usually, however, one array is enough for that :slight_smile: