Asmodean's Forum Posts

  • 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.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • It looks like it's something missing. I would ask MadSpy orAJ2DI.

    Be aware that if you use a newer NWjs version for an update of your game, all people that bought it on Steam can also get trouble with the NWjs-profile. They have to delete the folder, or you rename the project or you handle it yourself with a batch-file or something like that. Maybe TheRealDannyyy has an idea about that.

  • The game will still not launch (not even a black screen, just nothing at all).

    Try to delete the folder in \AppData\Local\ again. Restart your Computer and export your game again in a complete new folder don't export it in an old one.

    If you get at least a black screen again, try to press F12 for the develop tools, choose the tab 'console' and look if you have any errors.

  • Look for a folder with your game name in \Users\<your_user_name>\AppData\Local\ and delete it (or rename it). That should be the profile of the game.

  • 409 pixels? I usually do not go over HD 1920 x 1080 for backgroundsprites, and someties it has to be that, you cannot tile these things.

    I think that is a typo and means 4096. 4096X4096 is the maximum texture size in OpenGL ES 2.0