Possible potential bug

0 favourites
  • 2 posts
From the Asset Store
Unlock the full potential of Web3 gaming with the Metapro Web3 Plugin for Construct 3
  • Ashley

    Hey! I know we're not supposed to use methods and attributes with _underscore prefix but I've been trying some black magic with the EventSheet object and here's the thing. When there's a Function (the new built-in, not a plugin) call in a project, the code like this:

    runtime.GetLayoutManager()._allLayouts[0]._eventSheet._PostInit()
    

    hits an error:

    action.js:1 Uncaught TypeError: Cannot read property 'GetPlugin' of null at C3.Action._PostInit

    because there's this in action's _PostInit function:

    this._objectClass.GetPlugin().IsSingleGlobal()
    

    and unlike other actions, a Function call action doesn't have _objectClass, it's null.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm confused what you're posting about here. If you think there is a bug in Construct, please file a bug the usual way following all the guidelines, or there is nothing we can do. If you are using the SDK and calling undocumented methods, then the manual specifically states not to do that and that we won't support it.

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