Asmodean's Recent Forum Activity

  • drive.google.com/file/d/1iEbadOvnUgqd_ulvRGhOVyGg7KEYS3m0/view

    The disabled events should do the same as the events which are under this block. But it doesn't work correctly. Don't know if I done something wrong or if there is a bug with OR and MouseOver. So it's now a little more complicated.

  • It depends. The easiest would be to use:

    + System: Player.Y+Player.Height÷2 > Box_PushPull.Y

    Now you compare the bottom of the Player sprite with the middle(origin) y-position of the box. But if both sprites not at a same level you have to adapt it again. For example the Player and box are not the same level and the box origin is lower than the player bottom then it won't work again.

    But it depends what you want. Maybe you won't that the box is movable if player and box aren't level.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is because of Player.Y > Box_PushPull.Y in event 5 and 11. The y of both sprites is the y position of the origin of the sprites. If you make the Box smaller the y value increase, because the origin of the box gets nearer to the bottom of the Viewport/Layout. Eventually Box_PushPull.y is greater then Player.Y when the Box is small enough.

  • You could also convert the whole string:

    -> System: Set myString to """This is a \t tab"""

    -> Text: Set text to Browser.ExecJS("String("&myString&")")

    or direct:

    -> Text: Set text to Browser.ExecJS("String(""This is a \t tab"")")

  • now I unterstand what you want. Look of this works for you

    | Global number year‎ = 0

    | Global number month‎ = 0

    | Global number day‎ = 0

    | Global number myUnixtime‎ =0

    | Global string DateV‎ = "2018.4.29"

    | Global number daysToAdd‎ = 21

    + System: On start of layout

    -> System: Set myUnixtime to Browser.ExecJS("Date.parse("&DateV&")")

    -> System: Set myUnixtime to myUnixtime+daysToAdd×86400000

    -> Browser: Execute javascript "this.myDate = new Date("&myUnixtime&")"

    -> System: Set day to Browser.ExecJS("this.myDate.getDate()")

    -> System: Set month to Browser.ExecJS("this.myDate.getMonth()")+1

    -> System: Set year to Browser.ExecJS("this.myDate.getFullYear()")

    -> Text: Set text to year&"."&month&"."&day

  • I 'am sorry I don't really understand what you are doing, but if you want convert Unixtime to a normal format this should be easier:

    -> Browser: Execute javascript "this.date = new Date("&unixtime&");"

    -> System: Set month to Browser.ExecJS("this.date.getMonth()")

    -> System: Set day to Browser.ExecJS("this.date.getDate()")

    -> System: Set year to Browser.ExecJS("this.date.getFullYear()")

    -> Text: Set text to year&"."&month+1&"."&day

  • Try this:

    https://drive.google.com/file/d/1jhmNoGaR65z6fit4Y-_Q-ruIJFR0nHYW/view?usp=sharing

    The other one is a direct download. No clue why it's not working.

  • WRS

    I would rather use the Anchor-behavior.

    I made a little example maybe it's helpful for you. You can test different resolutions with the "device toolbar" if you press F12 in your preview in FF or Chrome.

    https://drive.google.com/uc?export=download&id=1jhmNoGaR65z6fit4Y-_Q-ruIJFR0nHYW

  • Ashley made a tutorial about resolution and aspect ratio.

    construct.net/en/tutorials/supporting-multiple-screen-17

  • I build the apk with Cordova CLI. I don't know if it's really helpful. I assume you used the build service from Scirra? I think it should be an apk from their build service.

    However here is my apk:

    drive.google.com/uc

    It's only a Textbox without any events.

  • I can reproduce with only a TextInput.

    It looks looks like there is a problem with old? cordova status bar plugins. stackoverflow.com/questions/36156357/cordova-status-bar-plugin-doesnt-work-in-android-when-keyboard-pops-up

    I think you should make a bug report.

  • It makes sense, you can deactivate groups. If you have a global variable in this group, it would break your game.

    For the organization of your variables I can not really help. I try to avoid global variables if it's possible and use instance, family variables and local variables instead.

Asmodean's avatar

Asmodean

Member since 31 Jul, 2015

Twitter
Asmodean has 9 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies