Objectives/Goals/Mission System

Hi everyone! Hope you’re having a good day!

I just wanna know if someone knows how to implement an objective/goal or mission system?

Just like most mobiles games today?

Examples are:

  1. Collect 500 coins in 1 game
  2. Reach 1000 distance
  3. Kill 20 enemies

What would be the best way to implement this one? Perhaps make a class for this? :slight_smile: :slight_smile:

Any help would be appreciated. thank you, unity developers! :slight_smile:

bump… :slight_smile:

I would use game center, but that’s just because I’m mostly an iOS developer.

yup! but i want to implement it so the player gets XP after a goal has been completed… and the player will eventually gain level… The player needs to complete those goals to increase his own level and unlock other stuffs :slight_smile: :slight_smile:

I see, well there are so many ways to go about it, wether it’s a singleton, static properties, etc. But no matter what solution you choose I believe the biggest problem that you’ll experience will be serialization. The player’s level, xp, progress, and all the other stats need to persist between play sessions, so finding a good cross platform serializer for that will be the biggest challenge.