LaurenceBedford's Forum Posts

  • In runtime you can move data from one array to another, by copying from cell to cell - "Array2 Set value at (X,Y) to Array1.at(X,Y)". Do this in a loop, if you need to copy the entire row or column.

    But it is not possible to modify JSON files in the project, so you will not be able to save modified arrays in the same JSON files. You can write them to Local Storage or some cloud storage.

    Ok thank you!

  • You want to transfer it in the editor? Simply select the cells you want to transfer, press Ctrl-C, open another file, place cursor where you want to insert these cells, press Ctrl-V.

    Have you ever used Excel? It's very similar.

    dop2000

    No How do I transfer using events?

  • In the editor? Simply rename the files, or copy-paste the content. Or do you mean something else?

    dop2000

    What I mean is I have files like this:

    They have a structure like this:

    How would I transfer a player from one to another?

  • Hi I have some JSON files in the properties bar. Lets say I have Player 1 in one JSON file and player 2 in another JSON file how can I swap these?

  • orangpelupa I managed to get mine working again today. Do you have skype or discord? I can give you a hand to get your's working?

    would you be able to post your solution here?

  • Hi I'm willing to code this for you please contact me at:

    ficiendeveloperljm@gmail.com

  • You might check out this thread. The dropbox link is still good. construct.net/en/forum/construct-2/how-do-i-18/scrollable-list-items-144000

    Give me a Pixel

    Thank you I will take a look.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Does your code work when you visit the URL in your browser?

    Have you checked the console when you run the request in construct - could be a number of errors have you got cross origin allowed on your script?

    when you run your project press:

    ctrl

    shift

    I

    to open developer console then go to network tab and see if there are any errors with your request.

  • Can you debug this on your phone to check the console for any errors.

  • Yes, but i need result from player name stored in mysql database..

    :)

    in sql ok, in construct with ajax i have problem .. i think only today problem :)

    get data from url like "playerrestult.php?playername" ... this is my problem for get data from url... i have used it many year ago but now i don't remember..

    Ok do you get any errors with construct or have you not tried this yet.

    if you want to get data from a URL containing PHP variables eg: ?playername=111

    what you can do is in your ajax get request you would do

    "yoursite.com?playername="&variableInConstruct&"&id="&variableinconstruct

    where you are parsing playername

    id

  • I am a little confused in what you are asking to do have you got a PHP script that already does this and you want to use it with construct ?

    Basically you do

    on start of layout ---> ajax request URL to your file

    On get request complete ---> set variable to ajax.lastData

  • Can anyone convert this to c3?

  • Hi Carter

    I emailed you but didn't hear back. Posting here in-case you did not receive my email

    markaspirenet

    I can help you with this. Email me at:

    ficiendeveloperkjr@gmail.com

  • A simple search that I made:

    Hope it could help!

    Thank you!