oosyrag's Forum Posts

  • When changing layouts, all the necessary resources for the next layout are loaded into memory. If the amount is significant, this can cause a freeze during loading/changing layouts.

    To prevent this, you'll need to load the assets needed for the following layout during the current layout, since assets in use for both layouts are not unloaded from memory when changing layouts.

    I would try do this by using load sprite from url. I believe you can also create the object that wasn't originally placed in the layout editor to load it into memory, but I'm not sure.

    As you load sprites in, assuming you don't try to do them all at once in a single tick, your animation should still play. Change layouts after you've got everything already loaded into memory.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you tried appending .webm to the name parameter?

  • You would probably want to use a dictionary instead of individual variables in this case.

  • I don't think there's a difference either way.

    I'd approach this by loading images from project files/disk dynamically as needed (preferably ahead of time). Set up a system to only load 10 pages in front or behind the current page into memory and you'll never run into memory limitations no matter how many total pages you have.

  • The hight at any point of a slope is the perpendicular distance from the edge times the tangent of the angle of slope.

    Construct is not a 3d engine. Not recommended to try to make a 3d game without being very confident in your math, and even then you're going to run into a lot of limitations.

  • Use a bullet behavior with negative deceleration. Every x seconds, set speed to something and set angle of motion to something.

  • You can store binary data as a string, in an array or other data handling method you like, and load it back into the binary data plugin as needed for downloading.

  • Define "holding".

    Are you using the drag and drop behavior?

    You could simply disable it on collision with another object, and re-enable on mouse released.

  • You possibly have an infinite loop, preventing your game from loading or running past the first tick.

    Without additional information or seeing your project, it will be difficult to help.

  • You can also always use an absolute path instead of a relative path.

    Or maybe you're looking for the 'set path' action?

  • JSON is a suitable format for storing dialogue. You've got a lot of options here though so use whatever you're comfortable with. You could even store it in instance variables per npc if you want.

    I'd use multiple instances of a text object for clickable responses. I'd use a separate text object for non interactive text though.

  • What exactly are you having trouble with? It's not much different than any other clickable interactable object.

    If dialogue is waiting for response

    On 1 clicked, do something

    On 2 clicked, do something

    On 3 clicked, do something

    On 4 clicked, do something

    Although for most classic rpgs, they all actually do the same thing, which is to advance the dialogue anyway.

  • You can 'include' one event sheet into another. If all your event sheets include a particular event sheet, that sheet effectively becomes global.

    You can also just set the second layout to use the same event sheet as the first layout in in the layout properties.

  • I don't have a tutorial or example, but I'd imagine to start you would need a method of keeping track of your inputs over time. This can be done with pushing input values to an array.

    Then it's just a matter of running a function on each key press to check if the last x inputs within a defined time window matches a valid combination. I'd use the timer behavior to reset the array to define the valid input window.