[r168]Overlapping after collision

0 favourites
  • 5 posts
  • Problem Description

    If an overlapping condition was put as a sub-event of collision event and you tired to get the instance variable of the overlapped sprite like this picture,

    you'll get error message after the event being triggered:

    Attach a Capx

    https://dl.dropboxusercontent.com/u/497 ... stvar.capx

    Description of Capx

    You'll get an error message when the ball drops to the layout bottom.

    Steps to Reproduce Bug

    Run the capx and wait 1 sec for the ball drops.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES

    Operating System and Service Pack

    Win7sp1

    Construct 2 Version ID

    r168

  • Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).

    You may try to create a text object in this capx and replace the "Browser-Log" by "Text-set text",

    print the instance variable by text, will get the same error message.

    On the other hand, if you try to print other expressions from this overlapped sprite; eg. Animationframe, angle, etc, it will work well. It looks like only instance variable hurts.

  • > Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).

    >

    You may try to create a text object in this capx and replace the "Browser-Log" by "Text-set text",

    print the instance variable by text, will get the same error message.

    On the other hand, if you try to print other expressions from this overlapped sprite; eg. Animationframe, angle, etc, it will work well. It looks like only instance variable hurts.

    Yes, you are right, it seams like that.

  • Thanks, good catch. Should be fixed in the next build.

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