Bug Issue: List attributes set by code block get cleared by scope?


Pages: 1

SirCrocketz

  • Subscriber - Stencyl Studio
  • *
October 18, 2018, 01:18:33 pm
Not exactly sure how to word this issue I'm having but I've made a sample game so you can see what I mean. I'm using a code block to set the value of an array. I'm then printing said array and it works fine. If I try to print the array again outside of the 'if' statement or within a different event, the value is removed.


New attachment added by SirCrocketz - October 18, 2018, 01:18:59 pm


New attachment added by SirCrocketz - October 18, 2018, 01:19:10 pm


SirCrocketz

  • Subscriber - Stencyl Studio
  • *
October 18, 2018, 01:52:53 pm
I actually figured this out. It was a scope issue since variables only work in their own scope. This can be removed or marked as fixed, sorry!


Issue updated by rob1221 - October 18, 2018, 02:59:57 pm
  • Status changed from New to Closed


Pages: 1

Details

  • Reported
    October 18, 2018, 01:18:33 pm
  • Updated
    October 18, 2018, 02:59:57 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    Stencyl 3.5
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode

Tags


Attachments

* CodeBlockIssue.stencyl (751.36 kB - downloaded 7 times.)

* CodeBlockIssue.png (163.5 kB, 1920x1080 - viewed 11 times.)