Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TIGGYsmalls on May 04, 2013, 03:29:33 PM

Title: Saving Scores/Lap Times between levels.
Post by: TIGGYsmalls on May 04, 2013, 03:29:33 PM
I have a level select menu and want to show the times and scores for the level under the level select buttons.

Anyone have a good starting points?
Title: Re: Saving Scores/Lap Times between levels.
Post by: Red on May 05, 2013, 04:02:27 PM
Anytime you need to pass variables between scenes that's where you'd look at the global variables list.

you can get there from the Playmaker dropdown, select Editor Windows then Global Variables. You can also get there from the Variables tab in the graph view at the bottom of that panel there will be a button you can click that will bring up the global variables window.

you can declare pretty much any variable you need there as with everywhere else.
Title: Re: Saving Scores/Lap Times between levels.
Post by: TIGGYsmalls on May 05, 2013, 04:15:14 PM
Oh... I thought that globals only worked in scenes, not between them all.

I guess that's why there called "globals".

:|
Title: Re: Saving Scores/Lap Times between levels.
Post by: PolyMad on May 05, 2013, 04:51:19 PM
LOL I thought the same: that a global variable is accessible from all the FSM in that scene.
I didn't think it's also persistent.
So, this means that as the program is launched we have variables that act on all the game.
Goooood to know :D