Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: cenab on May 22, 2014, 08:28:07 AM
-
Hello,i want to make like this ,but how send event to another scene create game object ,i try use global event,but it is not working
the first scene player can choose one character
i am also trying to make like this
first i made all prefabs for character
second i put the send global event
it is seen to another scene but not working
for the secend scene i made that if this global event recieve create gameobject
gameobject-it is going to be character prefabs
-
You can use the DontDestroyOnLoad action on the character GameObject and it will persist through the scenes.
-
i am already try it
it is not working too
-
Can you post your scene or some screenshots of your setup?
-
https://www.dropbox.com/s/wev2y7g69axoxs2/playmaker.rar
-
The DontDestroyOnLoad action needs to be on any object you want to survive between scenes. You also have to tell it to load the next scene from in the game, (in case you were just double clicking another scene) and I can't really see whats happening in those screenshots.
-
there is not have another variant to send event from scene to another?
-
There is only one active scene at a time, so the way to pass information between them at runtime is by using DontDestroyOnLoad so that the entire object persists to the next loaded scene.
-
i am working with mobile game
that is why i am a liitle afraid that 2 scene can make lag
-
perfect i done it like this
1)make game object and add fsm
2) if one character choosen send event + dont destroy action and another action load level + wait+create game object ...destroy self