Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: javialbertus on May 16, 2017, 08:38:05 AM
-
Hello,
we are developing kind of a launcher of minigames. Each minigame is a scene compressed into an assetbundle, so the main app (the launcher) have no code or FSM of any minigame.
The thing is that it looks like the global variables used in Playmaker won't work because the PlaymakerGlobals (located under a Resources folder inside Playmaker folder) are not in the launcher application or in the assetbundle. Is there a way so I can use those global variables in the downloaded scene from the assetbundle?
Thanks in advance.
-
You could export it, but then people have to import it and it will overwrite any globals they may have. Or you could write your actions using a manager FSM for variables instead of using globals (sometimes a pain, but sometimes nessesary). Two ideas.
-
Any update or Any other idea how to merge global variable?
-
Hi,
in your main game (launcher application?)
the globals should be included.
I have not worked with asset bundle yet but i do know you should use globals less as possible.
Main reason : globals are easy to access therefore they are easy to hack.
The 2nd option that tcmeric game is a good option.
You can use get/set fsm actions to use the variables.
and they will be local so harder to hack.
-
Thanks for reply
-
Hi,
Let us know if you got things to work :)