playMaker

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

miguelfanclub

  • Full Member
  • ***
  • Posts: 110
    • View Profile
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, 06:18:47 AM by miguelfanclub »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: [BUG] Seting a global variable with the same name as local wont work
« Reply #1 on: December 02, 2018, 11:17:58 PM »
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

  • Junior Playmaker
  • **
  • Posts: 89
    • View Profile
Re: [BUG] Seting a global variable with the same name as local wont work
« Reply #2 on: December 04, 2018, 04:42:04 AM »
Tip:

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