Hi,
I am making a game where you can collect 3 stars on each level and after each level I want it to send this amount to the appropriate level's global variable. I could set on each level a manual FSM where I type in all the variables names but surely there is a way I can do it dynamically so I only need one FSM that will work out which level they are on and update the correct global variable with the current number of stars.
I can't seem to work this out without doing it all manually which isn't very dynamic and would take a long time.
Any suggestions on how you would do this?
Cheers,
Adam