playMaker

Author Topic: Collectables System[SOLVED]  (Read 1684 times)

_adamturnbull

  • Playmaker Newbie
  • *
  • Posts: 18
Collectables System[SOLVED]
« on: May 11, 2014, 05:59:28 AM »
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
« Last Edit: May 14, 2014, 08:36:58 AM by jeanfabre »

_adamturnbull

  • Playmaker Newbie
  • *
  • Posts: 18
Re: Collectables System
« Reply #1 on: May 11, 2014, 12:46:47 PM »
I managed to do this using PlayerPrefs and building strings based on the level name to use as the name of each key.

Solved :)

Cheers,
Adam