playMaker

Author Topic: Inject globals  (Read 2982 times)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Inject globals
« on: March 21, 2013, 08: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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Inject globals
« Reply #1 on: March 21, 2013, 10: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, 10:23:07 PM by LampRabbit »