joaocbm's Recent Forum Activity

  • Please someone help, as this issue is driving me crazy for days in a row.

    I am very new to scripting, but been able to make it right with the help of gpt, but now, even gpt is tired of this issue and cannot resolve it further.

    I need to update a textbox called textDebug with the first value of the array called NEWScheduleArray. Whatever I (and gpt) do it always gives the same result "scheduleArray.get is not a function"

    right now, after 1000 changes, the code goes like this:

    // Access the NEWScheduleArray instance

    const scheduleArray = runtime.objects.NEWScheduleArray.getFirstInstance();

    // Retrieve the value at position [0, 0] from the array

    const valueAt00 = scheduleArray.get(0, 0); // Correct method to use

    // Access the textDebug Text object instance

    const textDebugObject = runtime.objects.textDebug.getFirstInstance();

    // Update the text of textDebug with the retrieved value

    textDebugObject.text = valueAt00.toString(); // Convert to string if necessary

    What is wrong and how to capture the value 0,0 inside the array?

    Many thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to create a football transfer list but I simply can't get past this issue.

    I have a dictionary where the keys are the players names, and the values are to show if they are listed for sale or not ("True" means they are for sale).

    I want to create a list of all the players on transfer list, so I created an array (TransferList).

    So, for each player (key) that has the value=True (means they are for sale), the player is to be added to the Array "TransferList".

    I've added some text debugging that is working, but nothing happens on the Array.

    Can somenone help me here, as I am stuck without mercy here...

  • You do not have permission to view this post

joaocbm's avatar

joaocbm

Member since 14 Nov, 2020

None one is following joaocbm yet!

Trophy Case

  • 4-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies