dop2000's Forum Posts

  • Spooky Spirits I have just posted a demo which may help you with this task:

    howtoconstructdemos.com/generate-random-levels-from-pre-built-scenes

    You can use the same method to copy rooms in your game.

  • jobel You mean that short "pop" sound when you tap asteroids and ships?

    How bad is this latency? Is just the sound delayed or everything on the screen lags for a moment? I don't have it on any of my phones..

  • This means making a custom version of this plugin?

    I'll keep this in mind, in case I need this. Thanks again for your help!

  • Yes, you need to pick the pinned box only.

    if value grab_instance 1 and A pressed
    System pick Box by evaluate Box.Pin.PinnedUID=Player.UID
    
    - player subtract 1 from grab_instance
    
    - box set bullet speed 300
    
    - box pin unpin 
    

    Or, if only one box on the layout can be pinned at a time, simply use "Box is pinned" condition.

  • Zagaroo You need to download the entire .capx file (not just the .caproj), and open it with C3.

    Also, see this demo:

    howtoconstructdemos.com/scrolling-a-list-of-players-scores-images-etc-example-a-capx

  • Is it possible to show the top bar, but to hide navigation bat at the bottom?

  • matrixreal You didn't say I needed to remove it :)

    It's so weird that to fix the issue with the notch, we have to remove construct-mobile-notchfix plugin.

  • If you removed the event that loads the game from saved state, but it still does it - this makes no sense..

    I would try to create a blank layout, set it as first layout, build the apk and test. If it still loads in mid game, then there's something wrong with the phone or maybe some mix up with the apks, I don't know..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So basically it loads a save from the previous version of apk, is this correct?

    You need to uninstall the previous version from the phone, before installing the new one.

    If it still does this even after clean install, then maybe there is some auto-backup software on your phone that keeps app data after uninstalling? Like TitaniumBackup or something similar.

  • So there is now simply a black area where the notch is? Yeah, that's what I was hoping for. It's an easy fix, I don't need to re-design the whole game.

    I didn't change Viewport Fit and Fullscreen mode. What I did was removing construct-mobile-notchfix plugin from the export. Export to Cordova, remove plugin from the config.json and config.xml, then zip and build an apk with C3.

    Thank you so much for your help!

  • Try Menu->View->Bars->Properties bar

    (This is English forum, please post in English)

  • Eren Wow, you are a lifesaver! Even without any function calls, this plugin works correctly on screens with a notch, offsetting the viewport. (The main reason why I wanted to show the status bar)

    Edit: I just realized that this plugin is already included when you tick "Hide status bar" during export, but you need to remove construct-mobile-notchfix to get the same effect.

    .

    Do you know how to show the status bar on top, but hide the navigation buttons on the bottom? I tried all these functions:

    AndroidFullScreen.setSystemUiVisibility(AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN | AndroidFullScreen.SYSTEM_UI_FLAG_LOW_PROFILE, successFunction, errorFunction);
    
    AndroidFullScreen.showUnderSystemUI(successFunction, errorFunction);
    
    AndroidFullScreen.leanMode(successFunction, errorFunction);
    
    AndroidFullScreen.immersiveMode(successFunction, errorFunction);
    
    // this shows both the status bar and navigation buttons
    AndroidFullScreen.showSystemUI(successFunction, errorFunction);
    
  • 619_RM I think I found the solution, could you test this file please?

    dropbox.com/s/h5ddv9tplclzodl/ptron-app-debug_notchfix.apk

    The viewport should start below the notch.

    (Make sure to run the correct app, as it has the same icon and name as the real game)

  • jobel Glad to hear it! :)

    When you beat 30 levels, you'll unlock Strike minigame (arkanoid clone), kids love it!

  • matrixreal What about it? I think it's automatically added when you tick "Hide status bar" option on export.