Kashin Ginn's Forum Posts

  • Hello Ashley, this seems to do partially what I want currently, except that in a huge loop, I have to specify everytime which param needs to be a string or number.

    Furthermore, if I now want to send lots of parameters (e.g JSON values), this gets messy. (Now having lots of similar functions/loop/checks in the long run... oh no)

    In my humble opinion, having "any" could greatly simplify the use of function parameters and avoid lots of redundant variables since we can just check the "is value type" for the received variable. Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I have a function called func() in my event sheet.

    Somewhere else, I'm calling this line via scripting :

    runtime.callFunction("func", param);

    The issue now is, sometimes the param I'm sending is either a string or an integer

    How can I retrieve the parameter in func() and check its typeOf?