dop2000's Forum Posts

  • Don't use round with random, it will produce uneven results. Value 2 will be picked more often than 1 or 3.

    Use int(random(1,4)) instead, or choose(1,2,3)

  • There are two tasks here - sending information to some server, and receiving information about player status (free coins, no ads etc.)

    If you need a proper solution, you will have to set up a database on your private server, or use some service like Firebase.

    If it's a simple game and you don't care much about people cheating, you can send their email to a Google spreadsheet and just immediately give them free coins for doing that.

  • When the timer starts, save the current system time in Local Storage. If player closed the game, next time it opens retrieve the value from Local Storage and you'll be able to calculate how much time has passed and whether to give the reward or not.

    If you are worried about people changing the time on their device to trick your game, you can retrieve the time from the Internet, there are plenty of free services.

  • It's not recommended to mix Physics with any other movement behaviors, especially if you are using joints.

  • You can make your own drag&drop, it's quite easy, especially since you want to snap object position to the touch.

    On Sprite Touched - save Sprite.UID in a variable

    Is In Touch - pick sprite by the UID saved in that variable and set its position to touch x/y

    On Touch End - clear the variable.

  • Check out Ashley's comment to this bug report:

    github.com/Scirra/Construct-3-bugs/issues/3718

    You can try this trick - create a folder in the list of objects and move either the sprite or Touch object into the folder (but not both).

  • You can't load that JSON data into the dictionary directly. C3 dictionary requires a specific format of JSON string, it looks like this:

    {"c2dictionary":true,"data":{"A":"alpaca","B":"baboon","C":"cat"}}
    

    Your JSON string contains an array with several nested objects. A dictionary can't hold that data. I suggest you keep it in JSON object.

    If you want to convert it a dictionary, you'll need to parse it into JSON object (which you've already done), then loop through all entries and add them one by one to the dictionary.

    Check out the official template in C3:

    editor.construct.net

  • There are lots of ways to calculate the trajectory for such movement. Check out this demo:

    howtoconstructdemos.com/category/misc

  • Glad it worked! I highly recommend setting up automatic backup in Construct settings.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, it's really annoying that there is no way to align such objects.. I posted a bug report:

    github.com/Scirra/Construct-3-bugs/issues/5585

  • You mean the files are empty (with size 0 bytes)? In this case yet, this is definitely wrong.

    Are the duplicate files (for example text 2.json) also empty? If not, you can try renaming them. Make a backup copy of the project just in case.

  • I don't have any experience with 3D yet, but normally to convert coordinates between two layers you need these two expressions:

    Set X to CanvasToLayerX("UI", LayerToCanvasX("Game",Animals.X,Animals.Y), LayerToCanvasY("Game",Animals.X,Animals.Y))

    Set Y to CanvasToLayerY("UI", LayerToCanvasX("Game",Animals.X,Animals.Y), LayerToCanvasY("Game",Animals.X,Animals.Y))

  • You mean in a side view game? Why can't you use Platform behavior? You should be able to configure all the settings - max speed, jump height etc.

  • Can you see these files in the objectTypes folder - text.json, timeline.json, sprite3.json etc?