dop2000's Forum Posts

  • Ashley I listed what my phone is showing me when I install the app.

    Read and write USB storage are related to WRITE_EXTERNAL_STORAGE permission.

    Full network access = INTERNET permission.

    Not sure what "Charges: Send MMS messages" is about, it's shown after the app is installed.

    Anyway, both WRITE_EXTERNAL_STORAGE and INTERNET permissions should not be added. I built an app with just one text object and nothing else and these permissions are still there! So they definitely don't come from any plugins.

  • A vanilla export shouldn't request anything more than network access

    Ashley Unfortunately it does. Here is a super-simple project with just Browser and Text objects and one event:

    dropbox.com/s/ywur7e1kzqjx8qj/PermissionTest.c3p

    And this is the AndroidManifest after building an apk with C3:

  • This is not an easy task. You need to open console (F12) in preview and check how often the game is saved for different operations.

    Here is for example how I would deal with rotation - add a new flag stepSaveRequired and set this flag while object is rotated, but don't call "SaveStep" yet. Only when keyboard button is released and the flag is set, then call the function. You will need to do something similar for other operations. (you can re-use the flag of course)

    .

  • Hi boulerzzz, Nepeo

    I faced the same issue today - tried building my game using C3 build service and it requires a lot of things!

    1. Full network access
    2. Read the contents of your USB storage
    3. Modify or delete the contents of your USB storage
    4. Charges: Send MMS messages

    (There are no addons or plugins that need these permissions)

    I don't have any experience with Android Studio. Is it possible to get rid of these permissions when building with Cordova CLI? At least the USB storage ones. If they are added due to invalid minSDK or targetSDK parameters, where and how can I fix them?

    .

    EDIT: I managed to remove WRITE_EXTERNAL_STORAGE permission by erasing it from all .json and .xml files (after adding android platform), and then building with cordova. The app works, but it feels like a dirty hack, rather than a proper solution...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know your layout structure. For this system to work, one instance of UNDO object should be present on all layouts where you need undo/redo.

  • I don't have the capx from this post, but I made a similar example some time ago:

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

  • You also need an instance of the UNDO sprite on any layout that you want to be able to use Undo on...

    Good point, I didn't think about this! Maybe you can put it on the first layout only and set it as global.

  • In event 100 the condition should be inverted - "Is NOT IsUndoSave".

  • Oh, so it's a physics game. Still, it's not recommended to move Physics objects with non-physics behaviors and actions, they will be conflicting with each other.

    There will always be a small gap between touching physics objects, I believe this is how the box2d engine works. You can try Chipmunk Physics instead:

    scirra.com/forum/behavior-chipmunk-physics_t110815

    Or you can try to use two objects for blocks - one invisible sprite with Physics behavior, and another visible sprite pinned to it. The second sprite should be slightly bigger to cover the gaps.

  • Using Physics in tetris game is probably not a good idea. Mixing Physics with other behaviors (solid, 8-direction etc) in one object is a very bad idea. This will never work correctly..

    .

    I don't know what kind of game you are making. If it's a tetris clone, you need precise control over shapes movement, which you can't achieve with Physics or 8-direction behaviors. I suggest using addons like MoveTo or Board:

    construct.net/en/forum/extending-construct-2/addons-29/behavior-moveto-40701

    construct.net/en/forum/extending-construct-2/addons-29/pluginboard-layout2board-47187

  • ...Or there may be a dozen of other reasons.

    When something is not working I usually add a bunch of "Browser log" debug messages into relevant events/functions and see which of them are showing in the console. This is called debugging :)

    .

    Also can you please guide me how I clear the undo history for the load

    Change the function like this and call it after .alon file is loaded.

    .

  • I don't know your project and can't help you with this. Maybe when you preview with F5 the event sheet with Undo functions is not accessible (not included into layout's event sheet). Or there may be a dozen of other reasons.

    .

    By the way, you probably need to initialize Undo (clear undo history) after you load ".alon" files.

  • Is it because you forgot to re-enable UNDO group? :)