AJAX load slow help me to put in a next array

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • cat;rat;bat;|mat;foot;ban;|etc say this is the text file i use

    tokenat(AJAX.LastData,i,"|")

    arrayA now cat;rat;bat;

    mat;foot;ban;

    i get everything to load ok in the first array but it take up 12 second to load say 10 word on in each text obj

    i am now trying to load every thing in a next array before loading them into the text obj to see if it will cut down on the loading time

    with this code i can only load one row at a time in arrayB not efficient because i would need to write 100 line of the same code

    cat,rat,bat

    tokenat(ArrayB.At(var1),0,";")

    add 1 to var1

    one Dim (2,1) arrayA cell 1 cat;rat;bat;

    cell2 mat;foot;ban;

    how to iterate arrayA into arrayB to get without writing this 100 time tokenat(ArrayB.At(var1),0,";")

    2 Dimension (2,3) arrayB cat,rat,bat

    mat,foot,ban

    tokenat(ArrayB.At(var1),0,";") = cat,rat,bat

    tokenat(ArrayB.At(var1),1,";") = mat,foot,ban

    tokenat(ArrayB.At(var1),2,";") = etc.......

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • tokenat(ArrayB.At(var1),0,";") = cat,rat,bat

    tokenat(ArrayB.At(var1),1,";") = mat,foot,ban

    tokenat(ArrayB.At(var1),2,";") = etc.......

    probably you can use loop..

    reapet X times...tokenat(ArrayB.At(var1),loopindex,";")

    or another variable

    ...tokenat(ArrayB.At(var1),(var2),";")

    it will be easier to answer if you upload capx...

  • it dont work but thanks i am just going do it the long way

    i write this line 200 time hard and long my finger hurt

    tokenat(tokenat(AJAX.LastData,i,"|"),200,";")

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