Function Object

This forum is currently in read-only mode.
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • I think I may just be having a mind blank, but I can't for the life of me work out how to get the parameter values of my Function I'm working on.

    Eg. Function.Atan2(1,2)

    I know the parameters are there, using Function.NumParams results in '2'. But I just can't seem to figure out how to get to them.

    Excuse the foolishness, and thanks in advance for your reply. <img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" />

    EDIT: I think its more a matter of not knowing how to use Function.Param. Thanks again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It was a bug!

    You get parameters using Function.Param(1), Function.Param(2) etc. (it's a 1-based index like everything else in Construct). However I messed up the definition of the expression in the SDK and the parameters dialog would have rejected that. The fixed version is on the CVS. Sorry to confuse you <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

    FYI, you can use Function(1), Function(2) as a shortcut for Function.Param, and this should work in the version you've got too.

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