Ahmad322's Recent Forum Activity

  • Why should I export a little project? I want the one I'm working on. Is there any issue with latest release or some server?

  • I've almost tried 20-30 times already

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm facing this issue while exporting iOS or Android apk. It shows transfer in progress which works really slowly and then it just stops and throws a popup "Build Failed". I'm using latest Construct 3 R344.2 release.

  • I'm playing an animation on some cards in my project. Using nested loop I fetch the values and then play animation named as "Yes" to play on that specific card. Here's my event sheet screen shot for that even:

    What I want is to add some delay after 1st inner loop iterations completed so that the next animation on cards run after some 2-3 seconds delay. I've already used wait & every X seconds inside these loops but not getting the result I want. Anyone please help?

  • dop2000

    Oh Thank you. Really helpful

  • Hi, I am using AJAX call and I'm getting this response:

    {
    "data": [
     [
     "1",
     "2",
     "3",
     "4",
     "5"
     ],
     [
     "6",
     "7",
     "8",
     "9",
     "10"
     ],
     [
     "11",
     "12",
     "13",
     "14",
     "15"
     ]
     ],
    }
    

    On AJAX call completion, I want to display "data" values in a grid like view consists of 5 columns & 3 rows.

    I tried using for/for each loop but I could not find solution.

    Any help?

  • dop2000

    Thank you, it worked.

  • Hey everyone, I am using POST AJAX request to send data to backend. I have one global variable names as 'lines' whose value is equal to 1 and it increments on button click. I want to send this value in POST request of AJAX. I have two values to send in JSON Form:

    {
     "id":1,
     "line":4
    }
    

    How do I refer to 'lines' variable in lines parameter of data?

  • You do not have permission to view this post

  • Hey everyone, I am doing an API call through my script and getting the response in an array. Each element in array contains some dictionary object. Its length is dynamic. Now I want to access this returned array from script file and use it in my event sheet. I tried using array object but could not find any solution. Here's my script:

    async function apiCall(runtime) {
    
    var resArray = [];
    
    const data = {some data};
    
    const res = await fetch(url, {
    
    method: 'POST',
    
    body: JSON.stringify(data),
    
    headers:{
    
    'Content-Type': 'application/json'
    
    }
    
    });
    
    const result = await res.json();
    
    console.log("Result: ");
    
    resArray = result.res;
    
    return resArray;
    
    }
    

    And the response I'm getting is this:

    {

    "res": [ { "price": "$0.05", "dots": [ 1, 0, 0, ]

    },

    {

    "price": "$0.05",

    "dots": [ 1, 0, 1, ]

    },

    ],

    }

    How do I fetch this response inside my layout/event sheet as I want to use price & dots values of each element to render something on screen?

Ahmad322's avatar

Ahmad322

Member since 31 Oct, 2022

None one is following Ahmad322 yet!

Trophy Case

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

Progress

4/44
How to earn trophies