playMaker

Author Topic: [HOW]Collecting scene data to another scene[SOLVED]  (Read 1208 times)

dhanze

  • Playmaker Newbie
  • *
  • Posts: 25
[HOW]Collecting scene data to another scene[SOLVED]
« on: March 01, 2015, 04:49:14 AM »
Hello guys I need help how to do this in playmaker

Im collecting a gem on Scene(level1) and when I load Scene(level2) I want  to see a collecting gem from Scene(Level1) or other scene.

how to do that??

is this a "Get event info" or I need to "prefab" my fsm gameobject
« Last Edit: March 02, 2015, 11:36:09 PM by dhanze »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [HOW]Collecting scene data to another scene
« Reply #1 on: March 02, 2015, 12:33:24 AM »
Hi,

 you can use different technics:
you can flag gameobejct to "DontDestroyOnLoad" using the action of the same name.

this will prevent the gamebject to be deleted as you load a new scene.

 if you want the data to persist so that when the player quit and relaunch your game the prefab appears, then you'll need to user PlayerPrefs, which allows you to save data on the device or computer for that game.

 Have a go with the above information and see how far you can go with this.

Bye,

 Jean