playMaker

Author Topic: Saving Scores/Lap Times between levels.  (Read 2379 times)

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Saving Scores/Lap Times between levels.
« 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?

Red

  • Hero Member
  • *****
  • Posts: 563
Re: Saving Scores/Lap Times between levels.
« Reply #1 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.

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: Saving Scores/Lap Times between levels.
« Reply #2 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".

:|

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Saving Scores/Lap Times between levels.
« Reply #3 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