Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: dhanze on March 01, 2015, 04:49:14 AM

Title: [HOW]Collecting scene data to another scene[SOLVED]
Post by: dhanze 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
Title: Re: [HOW]Collecting scene data to another scene
Post by: jeanfabre 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