playMaker

Author Topic: Playmaker, global variables and assetbundles  (Read 2213 times)

javialbertus

  • Playmaker Newbie
  • *
  • Posts: 2
Playmaker, global variables and assetbundles
« 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.

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Playmaker, global variables and assetbundles
« Reply #1 on: May 16, 2017, 09:44:23 AM »
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.

dev19872014

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Playmaker, global variables and assetbundles
« Reply #2 on: September 15, 2017, 06:07:52 AM »
Any update or Any other idea how to merge global variable?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker, global variables and assetbundles
« Reply #3 on: September 15, 2017, 10:13:23 PM »
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.

dev19872014

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Playmaker, global variables and assetbundles
« Reply #4 on: September 15, 2017, 11:30:07 PM »
Thanks for reply

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker, global variables and assetbundles
« Reply #5 on: September 16, 2017, 07:53:32 AM »
Hi,
Let us know if you got things to work :)