playMaker

Author Topic: Problem with system transitions (seems a HEAVY bug)  (Read 10600 times)

...

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
Re: Problem with system transitions (seems a HEAVY bug)
« Reply #30 on: May 31, 2021, 01:25:45 AM »
Just use one global variable, Globals Manager, a game object that will hold all other variables, expose inputs for easier manipulation, then just use getfsmxxx, you get used to it.




PolyMad

  • Hero Member
  • *****
  • Posts: 553
Re: Problem with system transitions (seems a HEAVY bug)
« Reply #31 on: May 31, 2021, 03:06:23 AM »
But why do this if there are global variables?
I can't really understand.
Global variables are not gigabytes. In most cases they are few bytes. Why not use them?

...

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
Re: Problem with system transitions (seems a HEAVY bug)
« Reply #32 on: May 31, 2021, 07:35:31 AM »
Type Global Variables in the search and have fun, they're a mess :)

I use them for globals manager and main camera now, and even then they cause trouble by losing reference after a while, so i have to get game object designated as a global and set it to global every now and then.
« Last Edit: May 31, 2021, 07:37:06 AM by krmko »

PolyMad

  • Hero Member
  • *****
  • Posts: 553
Re: Problem with system transitions (seems a HEAVY bug)
« Reply #33 on: May 31, 2021, 08:48:29 AM »
Type Global Variables in the search and have fun, they're a mess :)

I use them for globals manager and main camera now, and even then they cause trouble by losing reference after a while, so i have to get game object designated as a global and set it to global every now and then.

This is BAD... thank you for letting me know this... if I'll see some malfunctioning with globals I'll first check this out.