#Remembering Player Choices

1 messages · Page 1 of 1 (latest)

obtuse turtle
#

I'm making a game for the jam along with a friend where each time you die you choose from a bunch of weapon options for your next run. How can I make it so unity remembers what option the player picked last time and then disable that option from being picked again?

humble magnet
#

Should these options be remembered even after you close the game?

obtuse turtle
#

no, just between deaths is fine

humble magnet
#

Then maybe you can write a class that store information about these options.
Whenever a choice is made, you can access this class and write this info in it, on the contrary, whenever you're about show options, read infos stored in this class first.

bronze bobcat
#

You could also create a list<> storing all initial options. When the player chooses one it is removed from the list.

obtuse turtle
#

How do I make it so these changes stay even when I reload the scene?

bronze bobcat
#

you could store the list in a singleton

candid vector
obtuse turtle
#

Yo! I love your video on movement

#

I tried using static variables but I didnt really understand them

obtuse turtle
#

I tried using static variables but I didnt really understand them