[r192] Function with too many parameters

0 favourites
  • 3 posts
From the Asset Store
Shatter
$1.87 USD
25% off
Shatter effect, with parameters for crack size with an option for crack region and crack animation.
  • Problem Description

    Functions can't have 17~18 or more parameters, as it breaks the call function window, or it doesn't fit (specially if a parameter has multiple lines)

    With 20 parameters, the "Add parameter" and "Remove parameter" buttons disappear

    Steps to Reproduce Bug

      Call a function with a lot of parameters

    Observed Result

    [attachment=0:3kgz0xtu][/attachment:3kgz0xtu]

    Expected Result

    A scroll bar, probably

    Operating System and Service Pack

    Windows 7 Ultimate 64-bit

    Construct 2 Version ID

    r192

  • This is how the function call looks using "Set return value". It would be nice to have an action like "Call function by expression" or something like that, that would look like this, but without it requiring a return value

    [attachment=0:rjlqh725][/attachment:rjlqh725]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For the next build I added a 'Call expression' action to the Function object which should be more convenient for long parameter lists. Closing as that's probably a better solution than using the UI.

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