ChesVCF's Forum Posts

  • There are many tutorials on this topic, for example this one: construct.net/en ... -savegames

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I'm talking about the Multiplayer chat template in the C2 examples. Is there any way to implement a system where when the host leaves the game, another player gets the host position? It is to prevent that the peers get kicked from the chat whenever the host leaves the game.

    Tank you

  • Please answer rexrainbow, I don´t know how to update the plugin's SDK

  • I found the problem, I was instantiating my Firebase object with the wrong url. Firebase databases live at firebaseio.com. Firebase hosting sites live at firebaseapp.com.

    But now there is a last error:

    Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth/

    I have looked for a solution in the Internet and I found this stackoverflow.com/questions/3801 ... m-must-use I think rexrainbow the plugin code has to be updated to the new SDK.

  • It worked, but now I have another error when trying to create an account rexrainbow:

    Javascript error!

    Uncaught Error: This custom Firebase server (`frebaseapp.com´) does not

    support delegated login.

    htttp://localhost:50000/firebase.js, line 158 (col 324)

  • Thank you, rexrainbow

    I downloaded all the plugins and the sample .capx, but when I tried to run it I got this error:

    Javascript error!

    Uncaught Error: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please

    use https://<YOUR FIREBASE>.firebaseio.com

    htttp://localhost:5000/firebase.js, line 45 (col 272)

  • Thank you for your reply, randomly

    I didn´t know about this plugin, maybe you could post the .capx here, so everybody can download it.

  • I want to create a leaderboard, and therefore users have to create an account (to automatically save their scores and send them to the leaderboard database). It is similar to the system used in Clash Royale, there is a leaderboard where you can see the users with the highest scores (trophies).

    I know there are many tutorials on how to add a login/signin system or a leaderboard in C2 using a MySQL database and AJAX, but I have red them all and they are all obsolete. I think the problem is you need to use mysqli instead of mysql, and the code in the PHP is different.

    I decided to follow the steps written in this tutorial to create the login system construct.net/en ... ase?page=2 and search the code for the new PHP in other tutorials (outside scirra toutorials) but none of them worked.

    In this tutorial on how to create a leaderboard construct.net/en ... e-4?page=2 the updated code for the getscores.php was posted in the comments and it works fine, but there is stil the updated savescores.php missing.

    Could anybody kindly provide the missing codes or update the obsolete tutorials (most of them are many years old)? Not only for me, because there are many many people having the same problem. It is a very common problem.

    Thank you for your help <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • What do you mean? If you want to customize your character, you could try this:

    Create a new layout to locate the editor, and set up the editor. You can create a new sprite for every single customizable "item", for example, a sprite for the sword, a sprite for the clothes, etc... Every sprite has many different frames, every frame is a different sword/clothes/etc and in the editor, the player can choose the frame he likes the most (choose which sword/clothes/etc he likes the most). Create a variable to save the value of the frame the player has chosen and then, in the game, the sprites that compose the character have to set the frame of the variable.

  • Anyway, there are many free demo templates (.capx files), I´m sure you can find something helpful.

  • Ok so what is my best option ?

    I think you should better use the platform behaviour.

    when the user click a force is added on the player and he move in the direction of the click.

    I don't know if I got it correctly, if you want the player to move towards the position of the click, try this:

    Event ->Touch -> Is in touch -> (Action) PlayerObject -> Move dt*100 at angle (Player.X, Player.Y, Touch.X, Touch.Y)

    You can change the "dt*100" expression to change the speed of the move

  • set it on horizontal or vertical (which ever you want)

    clarkkentnicdao Sorry, how can I make that the invisible panel doesn´t go out of the layout limits in the x-direction? (The scrolling is only in the y-direction)

    I´ve tried making the panel solid and putting solid objects on the left and on the right side, but it didn´t work. I also tried comparing the X of the invisible panel, and if it was not equal to 0 it had to set its X to 0. This did almost work, the problem is everything moves outside the layout (when dragging) and once you finish dragging, it jumps to the correct position.

    Once again, thank you

  • It worked! Thank you, it was really helpful korbaach

  • Hi, I created a Quiz game following this tutorial (https://youtu.be/dPKhEOU2DFY) and everything works fine. It basically consists of 5 text objects (1 question and 4 answers) and the questions and answers are stored in a .txt file, they are put into an array and then they are displayed randomly.

    Well, my problem is that this quiz game has to be in Spanish, and I have to use symbols like "¿" and acents on vocals (á,é,í,ó,ú), which the system doesn't recognize. When I run the app (Chrome and Explorer), in the place where this letters should go only appears this question symbol "?" in a black dyamond.

    Can anybody help? Is there any solution? Thank you for your help <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • You're welcome Enjoy!

    Sorry, how can I make that the invisible panel doesn´t go out of the layout limits in the x-direction? (The scrolling is only in the y-direction)

    I´ve tried making the panel solid and putting solid objects on the left and on the right side, but it didn´t work. I also tried comparing the X of the invisible panel, and if it was not equal to 0 it had to set its X to 0. This did almost work, the problem is everything moves outside the layout (when dragging) and once you finish dragging, it jumps to the correct position.

    Once again, thank you