igortyhon's Forum Posts

  • Hello, I hope I have understood the question correctly.

    Here is a simple example.

    fex.net/s/ll4z4ac

  • Oh, I didn't notice that this question was in the Construct2 thread.

    I think I used something like that back then. I assigned a variable to an expression where the browser returns the time and immediately converted it to seconds. It looked something like this.

    int(Browser.ExecJS("var d = new Date(); d.getTime();")/1000)
    or
    Browser.ExecJS("var d = new Date(); d.getTime();")
    

    I don't have C2 right now to check this.

    Here's what I put in C3, but it should be the same in C2.

  • - There is a ready-made event to select the nearest one. But if you had a collision before that, you must first select all.

    (need to check)

    - You can create a function yourself that will compare the distance and select.

  • Check out the system actions, where you can choose one random or senior. This helps when several identical objects collide simultaneously.

  • ...

    I always thought that the local storage is written into the games' "browser" memory, so updating the phone or system browser shouldn't affect that.

    That's how it should be.

    But I also notice that sometimes data in local storage is lost. It doesn't happen often, but it does happen. Maybe it's the browser's fault, or maybe it's the user's accidental actions.

    My advice is the same: add alternative options for saving progress.

  • ...

    Should it be text object instead of spritefont? What about the performance impact of such solution?

    Hello.

    This information is outdated. A long time ago, browsers had problems rendering fonts, so we tried to display text using images.

    This is no longer the case, so feel free to use any font you like.

  • It's a very bad method to always keep the game running in the background. I would advise such developers to be punished.

    Is it so difficult to make everything time-dependent? And each time the game starts, recalculate the progress according to the time that has passed.

    I believe that in 4 months, some service or even an update could clear the local browser storage. You can duplicate the save to a file or some cloud service.

  • You do not have permission to view this post

  • I used the web client only for testing in preview mode, adding the following domains in the key settings.

  • Here is my minimum setup for login.

  • Hi,

    ... This is pretty annoying because I did it pretty easy with code and it's taking me a lot of time to do it with the plug-in.

    Appreciate any help thank you.

    Hello.

    Have you taken into account that different types of keys need to be added to the plugin for the web version and the Android version?

    I have no problems with this plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...

    crzy-meow.itch.io/construct3-example

    Thanks for your attention, just try this↑

    Thanks to the project file and video you provided, I understood that you want your character to climb onto the platform by falling on the trigger. To do this, you use a timeline, which is very inventive! It's a good idea, but it seemed too complicated to me.

    In fact, you need to lift the character up the vector and start the climbing animation as shown in the screenshot. This can be done with tweens, which will be easier and more accurate.

    Here is the video, and there is a project file in the comments.

    jam.dev/c/e30ff51d-d936-4d14-9f1a-ec06dc37a5dc

    I duplicated the project file.

    fex.net/s/7nnzl6r

  • I have placed the video and project files here.

    https://pan.quark.cn/s/50915b38eacc

    Hello. I was unable to view the files.

    You can upload the project to a website that does not require registration or downloading their application.

  • I work on Linux, and the clipboard works fine, copying selected graphics in both directions, for example from another editor or screenshot.

    Check your browser settings for permissions for the site “editor.construct.net”.