jaytee's Recent Forum Activity

  • I just exported my LARGE project file of C2 to find out there's a problem with C3-to-C2 Local Storage communication/process.

    I'm not sure if this is already a known issue, but per my test, C3 Local Storage cannot be read by C2 Local Storage "On Item get". But why? Aren't they both use the same Storage which is the Browser storage, right?

    Thank you for anyone who can clarify this to me.

  • Alright i was understanding it incorrectly then. Thanks!

  • So base on my understanding of Array.IndexOf(value) is that it will get every index that matches the "value"

    But how come in the pic below that its only updating the FIRST instance of the Array.IndexOf(var) while it loops through the array.

    What i expect base on the pic above is that if var=13 , then all Array.At(Array.IndexOf(13),1) should + 1.

    So both Array.At(1,1) & Array.At(2,1) should be 2 and not just Array.At(1,1).

    Let me know if I'm understanding this incorrectly..

    Tagged:

  • Thank you so much as always dop2000! All this information are helpful for me right now and for the future!

  • My problem is that after some basic checks which are all true, it still does not go to the next layout (right away). This has been my problem for months now and I just can't get my head around it.

    One workaround I gave my users is to keep refreshing till it gets cached by the browser and goes to the next layout. It works for at least 2-3 refreshes but sometimes some users are still stuck after several refreshes.

    Is this because of the file size? Currently its only 27.1 mb once exported.

    I hope someone can tell my why this happens or provide a much more smooth sequence.

    See below screenshot for my basic checks:

    To summarize, it gets the current URL+folder then compares to the latest URL+folder if its equal or not before redirecting or go to next layout

    You can try my website here to check if it loads on your side right away: dreamte1.sgpro3.fcomet.com/games/demo-live/v1.3

    Thank you in advance!

  • WORKED PERFECTLY! THANK YOU AS ALWAYS dop2000 !

  • Good day!

    What would work to set the below AJAX request to every CurX(0),CurY(1) of an array. I want every new line to be added to the next X index.

    I'm familiar with tokenat single separators but not with 2 separators (comma & newline) and here is what i have so far

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was tabbed away on my preview mode but after i returned, my screen went black but i can still see my textbox and theres a sad face on top.

    I pressed F12 and all i see is are these RED errors. What does this mean??

    This also happened on my EXPORTED version and im worried!

  • jobel

    Thanks! This looks promising. I'll try this and let you know the result.

  • Hi Mamot,

    Here's a snippet of my code i use to check if a username is taken.

    $query1 = mysqli_query($conn,"SELECT username FROM users2");

    if ($result_1 = mysqli_fetch_array($query1)){

    if($result_1['username'] === NULL){

    $query2 = "SELECT * FROM $table_name WHERE username='$username'";

    $result=mysqli_query($conn,$query2);

    if(mysqli_num_rows($result) > 0){

    echo 'Username is taken';

    }else{

    $query2 = "UPDATE $table_name SET username='$username'";

    $result_2 = mysqli_query($conn,$query2);

    echo 'Registration Successful';

    }

    }

    }

    I assume you are already familiar with this but feel free to ask anything and i'll try to answer.

  • Hi jm20026,

    You need to make a GLOBAL EVENT, put the countdown timer code there, and INCLUDE this GLOBAL EVENT to each and every layouts "event sheet".

    With this, each layout will have that timer code.

  • Is there a way to know this? I want to setup an AJAX request to know what is the current PING of a user..

    Thanks in advance!

    Tagged:

jaytee's avatar

jaytee

Member since 2 Jun, 2019

Twitter
jaytee has 1 followers

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies