tarek2's Recent Forum Activity

  • Just adding another example of using arrays & events.

    Array examples

    Awesome sizcoz really nice addition, Thank you

  • Here is an example of one App Covering the Notch counting when it's rotated also:

    Notch at the Left;

    ===================================

    Notch at the Right;

    ======================================

    But covers just the Notch area so it doesn't lose more screen size from the other side

  • If you want the Apps to look good at their native full-screen size the best option is "Cover & ScaleOuter & Hide Statur Bar" but Unfortunately the problem still persists as we don't have the way to detect where the notch is located at the "Right or Left" side because the phone can be Rotated, so you have to add two black bars one on each side if you want to cover the notch area but this will be limiting the screen size view because we can't detect the Noch Position.

    If we had the Notch Position will be much straight forward to adjust the UI even if they rotate their Phones

    So at moments is not possible to do this:

    or

    This

    ==================================

    If you need to something like this you need to count as the phone has two notches and add two black bars one on each side it's very limited at the moments.

    Many apps they adjust their apps UI as I show you above very easy, will be nice if we could that too to make better UI design.

  • Unfortunately, the trick didn't work on iOS as it adds black marks on both sides like if we use letterbox Scale but much smaller Black bars.

    Also the "construct-mobile-notchfix" is not included on the config.json and config.xml when you export to iOS.

    Here are the results:

    Auto & ScaleOuter & Hide Statur Bar

    ======================================

    Cover & ScaleOuter & Hide Statur Bar

    ======================================

    Letterbox Scale & Auto

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > > tarek2 It only cuts from the top (my game runs in portrait mode), and I only tried it on Android.

    >

    > Awesome I will give it a try, I hope it works for ios too, Thanks very much for the tutorial ))

    tarek2

    Let me know how it goes as I'm planning on releasing to apple but I haven't yet due to the notch bug with c3 exports.

    Sure np, I will update here the results the sooner I test it

  • tarek2 It only cuts from the top (my game runs in portrait mode), and I only tried it on Android.

    Awesome I will give it a try, I hope it works for ios too, Thanks very much for the tutorial ))

  • Yeah, if you remove the plugin, there will be a black area where the notch is. So the viewport will be smaller than the screen size, but at least it will not cover your graphics.

    Ho that's what I tried to do but it never worked for me as it cuts from both sides and put black marks on both sides instead of just where the Notch is located.

    Does for you cut from both sites or just from where the Notch is? dop2000

    I forgot to mention that I was testing on iPhones if that makes any difference

  • Which problem do you have guys?

    is the Notch plugging no detecting properly that the phone has notch?

    or

    That you cannot detect where is the Notch locate? example for landscape it could be at the (Right or Left) side depends if the phone is rotated

    Because if is the later one, I have the same problem that I couldn't detect on which side is the Notch so I can adjust the Game UI, also apart from leaving the space for the Notch I also wanted to cover it on black so you don't see two empty holes where is the notch located.

    If you have the same problem as me maybe we should open an idea request for voting as the Notch at the moment is very limited and we need more settings to properly work with the UI of our Apps

    Here is the problem I had

    Normal phone view without counting for the Notch

    Here If we no the way to know where the Notch is located right or left I could cover it in Black the Notch part Area and move the UI separate from the Notch and keep track of the phone if rotates so we can adjust it again on the other side, because right now you have to leave spaces on both sides and you cant cover both sides on black as that will cut to much space of the Screen.

    And this is how will look if we knew where the Notch is located

    Covering the space Notch Area in black and leaving space so the UI starts after the Notch Area

    ==========================================================

    I already mentioned to Scirra on this bug report

    https://github.com/Scirra/Construct-3-bugs/issues/3431

  • Funny around one week ago I finally said that's it today I'm gonna learn the New Function Maps because it's been too long on the waiting list to study and my c2 project uses Call Function by string everywhere, so I took the example from c3 main page called "Functions Maps" and I read it so many times the Tutorial until my brain fried, I couldn't make any sense of what I was reading and I gave up, luckily some good heart on Discord suggested to use Scripting for that.

    It's a shame because it was so useful and Fun and simple to call Functions by strings.

  • You do not have permission to view this post

  • Taximan

    If you post your comment first and then click on edit comment you will be able to add pictures, at least this is how I been doing till now, I think its a bug

  • Solved:

    Someone gave me a hand )

    I will leave it here if anyone is interested

    var dic = runtime.objects.Dictionary.getAllInstances()[0].getDataMap();

    dic.forEach(function(value, key) {

    console.log(key + ": " + value);

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies