Blux18's Forum Posts

  • I found an error, and it is that it does not allow to save beyond the number 9, if the score reaches 10 or more, these scores are not saved.

  • Sparsha you are the master!!

    I tried the code and it works!!

    Now save new records and update only if the score is higher. Thank you very much for your help.

  • Hi Sparsha!! Thanks for your answer

    I tried the code and if it works, but now the problem is that it only allows writing if there is previously a record in the database, if you try to save a new record, it does not allow saving nothing. I'm reading the information about the rules and trying to test variants but still can't get it to save new users.

  • thanks for your answer but i am not using mysql or php

  • I am trying to make a leaderboard using firebase as the database. It already saves a username and a score in the database, using these ajax parameters:

    I don't want it to save when it has a lower score; only save when it is a score greater than or equal to the best score

    How can I do this? Thanks for your help.

  • Thank you very much for the reply. Could you tell me how to store the sprites in the array and that instead of just numbers, show or make the sprites move?

  • Hello everyone

    I am creating a game, in a layout I want to put 3 objects, and every time that layout is shown the objects change position. I have tried to do it with a choose or a random but when doing it the objects can be repeated and I don't want them to be repeated, only that they change places. I show an image as an example of what I want to do.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It had not occurred to me, I will try to do it as you mention and I will comment on how it turned out.

    Thanks for your answer,

  • Hi

    I am making a game where an enemy follows the player around the stage, I already did this.

    My problem is when the player is behind a solid, the enemy stops (animation continues) and does not advance unless the player moves.

    media.giphy.com/media/RfkGuLThlNDGncwZ8M/giphy.gif

    What I would like to achieve is for the enemy, when colliding with the solid, to do a "bound to layout" style effect and keep moving forward until it manages to surround the solid and continue follow me.

    Here is the c3p file:

    mediafire.com/file/m3wzmpkcx6l8kji/bounce_on_solid.c3p/file

    I hope you can help me, thanks.

    Tagged:

  • It worked!!

    dop2000 I followed your script and it's exactly what I needed. Thank you very much

    In addition I started to investigate according to your advice on len () and I found how to put a maximum of characters, in case someone needs it, this is the result.

    System Compare two values RegexSearch(TextBox.Text, "[a-zA-Z]{3}_[a-zA-Z0-9]{6}","g")=0 -> Button set enabled

    maximum number of characters: 6

    System Compare two values len(TextBox.Text)>=7 -> TextBox set text left(TextBox.Text, 6)

  • In a section of the game, the user has to write in a textbox something, with the following structure:

    mon_2ft4up

    10 characters in total (3 letters + underscore + 6 characters)

    Only written that way, a button will be enabled.

    I will appreciate your help.