Dr.Hasan's Recent Forum Activity

  • I'm experiencing the same!

    Also, if Ashley hopefully sees this comment, I got no answer to this problem on the forum:

    When the Keyboard hides, the Navigation buttons do not hide automatically. I'd need to pull the notification and let go to make my game fullscreen again. Making it 'Fullscreen' (browser) or changing layout doesn't help either. Any fix to this?

  • Yes. object.physics.Velocity

    That's the speed, negative means going towards left.

  • Hi,

    So I have an Input Text field, when the user touches (on Android), the Keyboard shows up, but so does the Notification bar (and on most mobiles, the Navigation buttons too).

    Now, the problem is, when the user touches elsewhere, as Input Text goes unfocused and the Keyboard minimizes, the Notification bar does not hide automatically. It then never hides even when I change the layout. (Unless I pull it and let it go manually). It's really annoying because I want the game to be fullscreen. Is there a way I can force Fullscreen for Android?

    I tried the Browser object, but apparently, it doesn't work on Android.

    Any way around this? Please help! Thanks.

    Tagged:

  • If it's exactly the opposite way, it's because it may be facing 'left' when you made the Sprite. Note: All sprites have default direction facing right.

    One way to fix would be to Edit the Sprite, Flip the image horizontally.

    --OR--

    In the Event Sheet, instead of pointing towards an object. Set Angle and write:

    angle(sprite.X, sprite.Y, mouse.X, mouse.Y) + 180

    That should solve it.

  • You do not have permission to view this post

  • Hi all,

    Firstly, I was so used to "WebStorage" in C2, it was just perfect! Now, shifting to C3, I can no longer use it (can I?), so I'm stuck with this frustrating LocalStorage where I cannot even compare two keys together?

    I have made two keys "name" and "team" as the user writes their name and selects the team. This information is stored correctly in each key.

    Now, I have a button sprite, On Touched, I want to check if "name is not empty" and "team is not empty", before proceeding to the next layout.

    How do I check? In WebStorage, I would have done: Compare two values: "if(Webstorage.Localstorage("name") != "") and (Webstorage.Localstorage("team") != "")

    How can I replicate the same here?

    Note: I want to 'check' both keys together ONLY upon Touch button.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the reason it wouldn't work is because "On Touch Release" is same as having: "In not touching" with "Trigger Once". So it means you had three things together:

    "Is not touching"

    "Overlapping ground"

    "Trigger once"

    So the moment you jumped, it would trigger once, but the above condition becomes false, allowing another trigger when it becomes true again (when you release again).

    The way around should simply be having a Sub-event like so:

    On Touch Release:

    (sub) "Overlapping Ground" (Action: Jump)

    This way, it would check for Overlapping Ground separately before executing the jump, each time.

    Let me know if it works.

Dr.Hasan's avatar

Dr.Hasan

Member since 16 May, 2019

None one is following Dr.Hasan yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies