How do I find my params for the runtime.js

0 favourites
  • 6 posts
From the Asset Store
Use this game pack to create your own game, modify the existing game or simply take a look and see how it was made.
  • Hi,

    Excuse my confusion, I have watched a couple of vids and tried reading the tutorials here but I am at a loss. I don't understand where the runtime.js is getting its param variables for functions. I can see the alert example but I can't find where it is getting the myParam var for the function from.

    Is this coming from the name as in AddComboParamOption("student_id");

    So am I to use the text in the braces as my variable name for the function or am I just lost.

    Hope someone can help I have some great ideas for plugins.

    Cheers

  • * moved to a more appropriate section as those who can help usually frequent this section.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks zenox98.

  • lukeo25

    Action with combo params example in edittime.js:

    Things inside the (" ") are the text which users see in the option

    Action defined in runtime.js:

    The action receives the param with "pos", but not the text or any variable. The action receives an option index:

    Srry for my English

  • Josek5494

    Thanks for this.. In the second part here the AdMob refers to your action is that right?

  • Josek5494

    Thanks for this.. In the second part here the AdMob refers to your action is that right?

    Yes, you can put your javascript code in there inside Acts.prototype."yourActionName" = function() {......}

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