Blux18's Recent Forum Activity

  • Hello, I hope to explain myself correctly.

    When the character touches an object (item), it goes to another (item collect) and disappears using the tween behavior. But when "item collect" I put it in a layer with parallax (0%, 0%) it does not go to the "item collect" but it goes to the initial position.

    How could I solve that and that the "item" always goes towards the position of the "item collect" even if the character moves

    I attach an example of what I want to do.

    https://www.mediafire.com/file/jjqmemj2u2de0pc/TweenBehavior.c3p/file

    Thanks for the help.

    Tagged:

  • Oh it's more complicated than I thought. I appreciate your answers.

  • Hi!!

    I'm trying to create a leaderboard style android game that saves the data in firebase, the problem is that when I export the project and generate the apk (using the advanced minify option) and unzip this apk with a program called 7zip, there is a file called "data.json" inside the path: projectName>assets> www

    Inside this file is the URL of the firebase database.

    Is there a way to minify or hide this information?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I am learning about how to save in firebase and what I have achieved has been watching tutorials found here in the forum and asking, as in this case. What I have is the way to save the data and that it is only saved if the score is higher, I am investigating how to display that data. But if it helps you, I have this file with what I have learned so far.

    https://www21.zippyshare.com/v/7sgQrbGI/file.html

    Also, Sparsha has some excellent plugins:

    https://www.constructfirebase.com/

  • I tried it and it works correctly!!

    I am very grateful to you for the help.

  • Yes, the score is stored in a variable type number and the username in a variable string. These are the images:

    Layout 1

    Layout 2

    Firebase rules

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

Blux18's avatar

Blux18

Member since 13 Nov, 2015

Twitter
Blux18 has 1 followers

Trophy Case

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

Progress

12/44
How to earn trophies