playMaker

Author Topic: Inject globals  (Read 1224 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Inject globals
« on: March 21, 2013, 05:55:22 PM »
There needs to be a way to transfer global variables.

Currently when you share a scene or prefab or anything with an FSM that uses a global variable it is not carried over, meaning you have to rewire anything using a global.

It would be nice to have something that stores the globals and injects them into the new project/scene. I think all it would have to be is a simple menu that you can pick which variables to save, then output a script with those variables and then when it's run in the new project they will be injected into the playmaker global variable storage.

It's really annoying to transfer things that use globals between projects or computers at the moment because of how it breaks the FSMs and it seems much less efficient to build FSMs that grab those variables constantly when it they could just use a global.

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Inject globals
« Reply #1 on: March 21, 2013, 07:21:21 PM »
Under the Playmaker/Tools menu you can find export and import options for globals .... have you tried these? I haven't yet tried them, are you suggesting an improvement on these?
« Last Edit: March 21, 2013, 07:23:07 PM by LampRabbit »