hi, I am working on an RPG game where different allied units are used for the combat system, my question is: How can I implement a system that allows me to unlock units when the player reaches a certain level? I am currently working with this asset:
It might be a good idea to google about RPG level systems, then you will find many discussions about this topic.
But if I outline on high level one way to make it:
- Have stats for the player, which start from your initial values. You need to keep track of them.
- Have a system, that runs after each game action that would give experience. This will use events or whatever way you see fit to transfer the information to the player, so that the player stats increase the needed amount. Over the time your players stats will now increment from the kills, performed tasks etc.
- Have an unit unlock check, that is performed in similar manner (after one round/after a battle or whatever). If a threshold is crossed and the player should now have access to an unit, unlock it.
You probably need a few more things for this but you can pretty much build many different unlock systems this way.
1 Like