igortyhon's Forum Posts

  • Hi. I don't know how to add a special character.

    But here's another way.

    You can replace the space with a transparent icon sprite.

  • How can we help you without your code?

    Please attach the *.c3p file; this will make it easier for us to resolve the issue.

  • Hi, I'm not quite sure what the problem is. I haven't noticed any issues.

    If you're exporting to the web, you'll need a web key. if you're exporting a build for Android, you'll need an Android key.

    You create both keys for a single app, and when you export, you use the appropriate one.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Hi. Create a group in your events and add any suspicious events to it. The profiler shows the load for each individual group.

    I use this as a life hack.

  • Hi.

    I don't know exactly what the game's requirements are, since the inventory is designed around the player's needs in the game.

    I like to use an array as the main data source for the inventory. that way, it’s easy to change the graphics or decide where to display it.

    I’ve implemented drag-and-drop and added comments. I removed some things to make the example easier to understand.

    After all, it’s also important to remember that the player might not land on an empty slot when dragging.

    fex.net/s/tmrs9xc

  • Hi.

    If you could provide a *c3p file and describe exactly what the problem is, we'll be better able to help.

    We can't guess what you've created in your project.

  • heres a video to help anyone out: youtu.be/wOM54fQDOSQ

    Hi.

    You can save this test as a *.c3p file and upload it here.

    That way, we'll be able to take a closer look at how your collisions work.

    But in platformers, this collider is always hidden, and various animations are attached to it.

  • You posted the code for the entire game- where should I look for the bug? Where exactly is it supposed to appear?

    I tried playing through the game, but I couldn't even beat the tutorial.

    Well, at least the music and graphics are nice!

  • Hi, try switching the rendering mode.

    I've also noticed some display issues in Safari/

    It might not be related, but it's worth checking.

    github.com/Scirra/Construct-bugs/issues/9087

  • Try Construct 3

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

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

    At the beginning of the game, where you have data loading, you can add a block like this.

    Typically, the platform’s guidelines or documentation specify which workarounds they recommend to bypass the built-in capabilities of the browser’s control buttons.

    // Disable unwanted page scroll.
    window.addEventListener("wheel", (event) => event.preventDefault(), {
     passive: false,
    });
    
    // Disable unwanted key events and spacebar scrolling.
    window.addEventListener("keydown", (event) => {
     if (["ArrowUp", "ArrowDown", ""].includes(event.key)) {
     event.preventDefault();
     }
    });
    
    // This is a fix for handling visibility change
    // on webview, it's for an issue reported for Samsung App.
    document.addEventListener("visibilitychange", () => {
     if (document.visibilityState) {
     if (document.visibilityState === "hidden") {
     application.publishEvent("OnWebDocumentPause", "True");
     } else if (document.visibilityState === "visible") {
     application.publishEvent("OnWebDocumentPause", "False");
     }
     }
    });
    
    // Disable context menu appearing after right click outside of the canvas.
    document.addEventListener("contextmenu", (event) => event.preventDefault());
    
  • I asked Gemini if it could create a shader for me - every attempt failed, so after about 10 iterations, I handed the project over to ChatGPT and it fixed it in 3 attempts.

    If anyone's interest, it's here:

    https://drive.google.com/file/d/1zE1s13RzZPtttzZrjiOLmEyAa1NL8Av_/view?usp=sharing

    Three parameters - radius, width and height (you need to set the latter two to the size of the sprite).

    Thanks for everyone's help.

    That's an awesome result-now that's what I call putting AI to good use!

    Not only did you solve the problem, but you also shared the solution with the community!

  • ...

    Any ideas?

    ...

    fex.net/s/4amtbay

    Hi, there's also an option using an HTML element, where you can round the corners using CSS.

    But it offers fewer customization options than a sprite.