[r209]Error accessing instance variable

0 favourites
  • 2 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Problem Description

    Accessing an object instance variable through index id in same event (and sub-events) gives js error.

    Uncaught TypeError: Cannot read property 'instance_vars' of undefined expressions.js:474

    Attach a Capx


    Description of Capx

    It creates a sprite setting an instance variable to somevalue and saving the current IID.

    Then it tries to access this value in the same event (disabled) and again outside the event (to show that it works) and dumps it in a text object.

    Steps to Reproduce Bug

    • Open capx
    • Enable last action of first event.
    • Preview.

    Observed Result

    Javascript error

    Expected Result

    No error and text object shows the value.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: IDK

    Operating System and Service Pack

    WIn7 64bit SP1

    Construct 2 Version ID


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, should be fixed in the next beta.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)