dop2000's Forum Posts

  • Sorry, I don't understand you. Do you want to use "Wrap" behavior? Then you need to remove "Bound to layout" behavior.

    .

    If this doesn't help, maybe you could give a detailed explanation of the problem in your native language. And post it here together with Google translated version.

  • Almost certain the problem is with the position of Origin image point in your animations. Make sure it's always in the same position on the character in all animation and all frames.

  • After you picked some instances, in a sub-event you can do "For each Object order by Object.X" and only process the first instance, after that stop the loop.

    Or, depending on how these instances are positioned, you may be able to use "Pick nearest to" event, for example, to pick the leftmost instance, pick nearest to (-10000, layoutHeight/2) or something similar.

  • Check the list of addons, there may be addons for different ad networks.

    You can probably use Admob mediation to connect other networks.

    Also, — has recently released c3-runtime version of Enhance addon, as part of Construct Master Collection. With Enhance you can use dozens of ad networks.

  • You don't need "item missing" events, delete them. Also, if you want to set 20 variables, it will be a lot of code! It's easier to add them all to a dictionary and save the dictionary. See this demo project:

    dropbox.com/s/1cz1k5x3teikbv5/DictionaryLocalStorage.capx

    Here is how I usually do this:

    On start of the game I call StorageLoad function. At the end of each level I call StorageSave.

  • Yeah, anchor has a lag. It doesn't update object position immediately. As a workaround you can create an invisible object, and make it visible after a short delay.

    Or ditch the Anchor and on every tick set object position to viewport bounds.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to loop through the array, either on X or Y axis (depending on your array structure). See this example:

    dropbox.com/s/onugaq9q7uuf8ok/ArrayFindLastNotEmpty.capx

  • If I understand you correctly, you need to set "Bound by=Edge" in behavior properties (on the left panel)

  • Yes, it's quite easy. You can keep the file chooser button hidden off-screen and use the following code to trigger it:

    Browser Execute Javascript "myFileChooser.click()"
    

    where myFileChooser is the ID of FileChooser object. (set this ID on the left panel)

  • roguelike2018 Please don't use Google Translate! Lots of your contributions are unusable. For example google translated "tween" as "подросток" ("teen" or "young boy"), and you didn't even bother to change it!

  • 1. Try opening script url from the browser like this:

    http://yourserver.com/savescores.php?name=john&score=999
    

    Try both http and https.

    See if there are any errors on the screen or in browser console. Check if the record was added to the database.

    2. Check permissions on the file savescores.php

    3. Try connecting to the database via phpMyAdmin with the same credentials as in the php scripts, and "manually" inserting one record into the table as described here:

    construct.net/en/tutorials/creating-own-leaderboard-1032/page-2

  • I doubt the syntax has changed, the problem is most likely with something like permissions. Maybe this user doesn't have write permission for this table.

    There is another zip attached to the tutorial - php7.zip, have you tried it? It's using different functions to connect and write to the database - mysqli_connect and mysqli_query. (notice the letter "i"). Maybe they will work?

  • Use Timer behavior instead of "Every X seconds".

  • You can not modify project files from runtime. You need to read the file on the first run, change or add new books and save the data to Local Storage for example. Next time, if Local Storage item exists, get it from Local Storage instead of the project file.

    But of course, this method will only work for one user. If you want to add books for all users, you need some kind of online database.