playMaker

Author Topic: [BUG] Seting a global variable with the same name as local wont work  (Read 1554 times)

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
It simply doesnt detect the difference at UI level, both of the variables are changed to local or global depending on the last one you set on the UI of the action.

Talking about the Set Int Value Action
« Last Edit: December 01, 2018, 08:18:47 AM by miguelfanclub »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [BUG] Seting a global variable with the same name as local wont work
« Reply #1 on: December 03, 2018, 01:17:58 AM »
Hi,

 yes, you need to enforce that local variables and global variables be named differently. I usually add a weird character on globals so that I alwasy know it's a global at a glance. like "#My Variable Name"

Bye,

 Jean

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: [BUG] Seting a global variable with the same name as local wont work
« Reply #2 on: December 04, 2018, 06:42:04 AM »
Tip:

Say you have a string variable called "pasta".
Local version syntax : pasta
Global version syntax : Pasta