Kashin Ginn's Recent Forum Activity

  • 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?

Kashin Ginn's avatar

Kashin Ginn

Member since 27 Apr, 2024

None one is following Kashin Ginn yet!

Connect with Kashin Ginn

Trophy Case

  • 1-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Quick Draw First 5 people to up-vote a new Construct 3 release
  • Email Verified

Progress

7/44
How to earn trophies