Hi, I am trying to create a 3d mobile game which is kind like flappy bird or jelly shift. My game will consist of 50 levels. However, I am not sure how can I save the user’s data. For example, how many levels did the player pass and what level are they currently on? Not sure how to do that, hope someone can help. If u have time to, I would like a picture of the blueprint. Thank you.
I believe this is what you are looking for:
How to save and load your game using Blueprints
There is a section on how to save and load variables.
The data I want to save is how many levels my player has passed, what type of variable would I set it as? Would it be an integer?
the variable type is really up to you and how you wish to implement things. if the levels are in a single linear progression then using a integer would be fine, but if you had levels where you could skip around like going from 1 to 3 without doing two then maybe something like a array containing bool values might be better since you could set the bool to true for each level/index completed.
for your case and based on my limited knowledge of the games mentioned i would say a integer would be the way to go.
kk, I think an integer is good enough if u can, can u show me an example of how to load that variable? Also if I want to, for example, give an icon to the level that is finished, how can I do that. Thank you.
I would probably save each level passed to an array of completed levels, that way if you add new levels or change the order later on, you can still get value…
It might limit you in the future if you just save “User has complete 10” levels vs the list of the levels completed.