crynof's Recent Forum Activity

  • Hi

    I created a game with a online score table connected to db from internet hosting with ajax.

    This table in my pc, in other pc in my house and in othet pc in other house works fine, the game connect to internet, but when y try to run the game in a school the game not connect to internet.

    Whats is the problem?. The firewall?,

  • Hi!

    How can i to conserve the font in web and mobile devices?, because i put a new font for text in the PC Construct 2, but when i want to show in web or mobile, this text is showed in arial.

    Thanks!

  • Thanks, i find the problem, is not the code, is the songs because i have 5 songs with size of 3.5 mb aprox each.

    This songs are converted from wav to m4a and ogg 94kb. ¿ Is possible load this songs more faster?, or reduce the bitrate without affect the game??

    Thanks!!!

  • Hi!

    I compiled my game to HTML5 web, and also to convert to apk with intel xdx. The problem that i have is that the loading screen is very slow in Web and mobile, but when i convert to exe for windows, this screen load very fast.

    Whats happen?

    Also i have other question.

    How can i to increase the performance on mobiles. (I have a LG G2, with 2.25 ghz quad core, 2 gb ram) and have some slowdown

    Any idea?

    Thanks!

  • Hi!

    I have a game that the player always move to right, and the hud layout also (score, lives etc). Now i create other layout for a pause menu, but i dont remember how can i to set that layout is in movement, because the menu dissapear whilethe player is in movement.

    How can i do that?

    Thanks!

  • Hello

    I have a Php file that make a query like

    $query = "SELECT score FROM users where id = '$ID'";

    $result = mysql_query($query);

    result should to return a number.

    How can i get the result with ajax to operate or compare in construct 2?

    I try with ajax.lasdata, but not works

    Thanks

  • Hello

    I have a game that saves scores in a database.

    To submit the scores to the database using AJAX, and the hosting of the receive PHP files .

    The php checks if the score is sent greater score in the existing database , and if greater , stores , and if less discards .

    The game works well , keep the scores are higher every time , but I have a problem.

    If I close the game and I open omits the previous score and overwritten by the new being even lower.

    It seems that everything resets to write again , but does not respect the saved score above.

    For example:

    If in the first run i get 25 points, after 75 points, the last value saved in DB is 75 because is greater than 25.

    If after i close the game and run again, if the first try i get 25, normally the game should to conserve the 75 points, but in this case ocurrs a error and the 75 points are changed for the 25 points, still if 25 < 75.

    What's going on?

    This is the PHP

    Is writed in spanish.

    The parameters U, PM, PS, PR PM, PT, are sent by AJAX in the normal way (with request URL etc....)

    example

    Request "URL/updatescore.php?U="& IDUser & "&PS=" & Score

    Any error in the PHP?

    Thanks!

  • finally i used webstorage, and store the value here like aux value and works fine.

    Thanks for your answers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    I want to conserve a global value when i reset all global variables, is possible?. I read that with Webstorage plugin i can save the value, but i dont know how to use.

    I need exactly:

    When i login in my game, i get id user in a global variable, but when is reset, this value is lose, then i want to save this value still resetting all global variables, to use after.

    How can i do that

    thanks

  • Hi, i have a problem with the global variables. I have a game that save the scores on hosting web mysql. the scores are saved when i add valua to variable score, but to know the player id where to assign the score, i pick the global variable IDPlayer when her is logged.

    To respawn the game whe the player lose, i reset all global variables, but also reset idplayer and then cannot to save the followings scores.

    How can i to asign the id player as other way?, or not reset this variable?

    In other words, how can i reset all variables except one?

    Thanks

  • seems only update when the game run for first time, bus when i lose and restart layour to new game, nos save score.

    How can fix that?

  • Hi!

    I have a game that work with a database saving scores. I use AJAX to send request and update the scores to database, but i have a problem. The score only update sometimes, not all times in same conditions (same function).

    Whats happens, server problem?, construct 2 problem?, ajax problem?.

    I save the scores (send ajax request) when construct 2 sum a value a global variable score.

    Any idea?

    thanks

crynof's avatar

crynof

Member since 22 Jul, 2015

None one is following crynof yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies