It looks like you're new here. If you want to get involved, click one of these buttons!
hey guys so im trying to make an upgrade system for an infinite runner that im making but i dont know how to do that.
i want something like this upgrade system Dani made for his game in this video ==> https://youtu.be/vrrR_8USmns
i just want to know how to for example increase my player health or give it a new weapon or just increase a float or change the player sprite.
and i also want to know how to save all this for player???
im pretty new in this coding and if you could provide me a video or a sample code that would be a big help.
Thanks!
Hi @ShakehGames,
This sounds like a perfect situation for a ScriptableObject!
A Scriptable Object can store all of the information you need, then on Start you can just pull all the stored data into your Player script.
Brackeys actually has a tutorial on them: https://www.youtube.com/watch?v=aPXvoWVabPY, take a look!
Good luck mate,
Slug
Answers
@MrSlug
Hey ive seen that video but i dont know how to use that in a game
Ive seen that brackeys switch gameobjects with different scriptable objects but how can you switch them via script?