jaytee's Forum Posts

  • 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:

  • Anyone else having this problem? I have already uploaded a newer version but users still sees the old one. Even when I deleted all the game files, some users can still access the files.

    What should i do? I already see a post that i need to edit Index.html file in the part of of c2runtime but it is not working at all.. Can someone help?

    Thank you in advance!

  • Good day,

    Is there an C3 Addon that works just like this C2 plugin "waker" by rexrainbow? Just porting my C2 project to C3 that I just bought and this is an important aspect to it.

    I have been using this on my game (still under development in C2) make the game STILL RUN even when tab is unfocused. My game is simulation game that heavily relies on setting a lot of random variables and I noticed that when not in tab, it stops, and so when I found out about this plugin, everything worked!

    I hope there's something similar in C3.

    Thank you so much in advance!

  • Good day everyone!

    Due to the announcement of Construct 2 retirement (which is very sad..), I just bought Construct 3. My two main concerns are:

    1. does the editor run OFFLINE

    2. does Construct 2 plugins still works in C3? (e.g rex rainbows)

    Thank you so much in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Good day everyone!

    I just want to inquire whats the best hosting site right now for an HTML game. I want to know from people who has experience regarding it.

    I got betrayed so bad by a "FREE" hosting site. They suddenly, JUST SUDDENLY, posted that i violated there terms and wanted me to upgrade (nice..) and now i'm here.

    Thank you in advance!

    Tagged:

  • blackhornet

    Wow that totally worked out! That kind of Method is new to me so thanks! Y

  • The left image is the Array1.

    The code i mentioned earlier explains that if the Array1.at(CurX,4) is "SF" value (circled in red), copy it to Array2. But unfortunately its just copying from Array1 indexes it to the same indexes in Array2.

  • Good day!

    I have actually successfully done the title but my problem is what the image shows below:

    There are spaces (zeroes) in between the values.

    To my understanding, its copying the values to 2nd array from where its index was in the 1st array.

    I don't want to have spaces in between the indexes in 2nd array. What should i do?

    Here is my code:

    Thank you so much in advance!

  • Nabu thank you sir for your response!

  • Hi Good day,

    The below coding style produces the same output BUT do they run differently and affect performance?

    I'm planning to insert a lot of data to an array and im wondering whats the best coding style to choose (if they differ in performance)

    Thank you in advance!

  • alright thats good to hear! thanks mate!

  • Hi,

    Still at work and i just thought about this one.

    I am planning to load a LARGE json file to my array. Example size is like this:

    "https://stats.nba.com/stats/leagueLeaders?LeagueID=00&PerMode=PerGame&Scope=S&Season=2019-20&SeasonType=Pre+Season&StatCategory=PTS"

    am wondering how many X and Y index can construct array hold? and how fast will that be loaded to my array?

    Thanks!

    Tagged:

  • Hi!

    The issue on my end is that when i test my game in mobile, when pressing a textbox, the keyboard shows and resizes the whole layout. Making it so small.

    Is there way to not make it do this? And just cover the whole layout..

    Thank you!

    My device is android.