TENSHIYI's Forum Posts

  • I know there is an example of Flowchart questionnaire in the example browser.

    However, the questionnaire I want to make is not simply linear, it with the same questions in each branch. I don't want to add duplicate nodes for each option.

    For example, making an order for a sandwich, Choose the type of bread to be added, whether to add cheese, whether to add pickles, and whether to add tomato slices and onion slices.

    Although they all use the same nodes, But eventually they will go to a different node. Orwell maybe this example is not appropriate, it can be replaced with a personality test, or a zodiac sign test. Hope someone can understand what I mean.

    How can I use the flowchart to keep track of which branch the player has chosen without hardcoding it (I don't want to add a variable for each option)?

    Maybe I'm looking for an condition/expression that gets the output of the previous node of the current node current output?

    Tagged:

  • Please allow me to go off topic for a moment. I have another question that has puzzled me for a long time.

    Does the engine still support the "texture batching" technology? If I reuse the same sprite 30 times in this layout, is its image memory usage calculated as 1 or 30?

    If this sprite has 10 animations, but they are all playing the same animation, is its memory usage 10 * 30?

    If these sprites are not yet on screen, will they use memory even if they are not rendered?

  • Hi, Ashley

    What can I do if I sometimes feel that the arrangement of the sprite sheet is not "smart" enough?

    For example, I want a spritesheet to contain the complete image of a sprite. (The size of the spritesheet is enough to arrange all my animations), but it includes my other sprites in it, causing my sprite to be forced to be divided into 2 sprite sheets. Or, it contains an image of another layout.

    Is there anything I can do to intervene so that it merges the way I expect?

  • Thanks to everyone for answers!

  • If I understood correctly… just add a instance boolean var to the TextInput ("enable", false by default) and do this.

    This will not work if you have already typing in the TextInput.

  • I want to display a TextInput object in game when I press the ` key, and hide it when I press ` again.

    I tried this, but it doesn't work.

    I also tried putting it on an HTML layer, still doesn't work

    What should I do?

    When I have focus on the TextInput, I can't press ` to hide it again.

    Tagged:

  • Avoid indefinitely increasing the image offset, such as by always adding to it.

    Never noticed this! However, in the example browser there are many examples that use this same approach.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much! It worked!

    But another nightmare came immediately: "has been blocked by CORS"

    It seems like there's really nothing I can do about it. I had to give up :(

    Deploy an intermediate server to make them work, currently the only way.

  • Modern browsers block secure websites from sending requests to insecure websites. So it's browsers that are blocking this for all web content, it's not specific to Construct. Construct's preview is a secure website, and so you will hit this security restriction in preview mode.

    The one exception is you can make insecure requests to localhost - that is allowed as the system knows the request will not leave the same device.

    All modern web content should be secure and run on HTTPS. Nobody should be running an insecure web server for anything important these days.

    Is there any way to make it work? Because this is a development test server provided by the other team, I can't make any changes to it.

  • When I try to send a request to an http server, my request is rejected in the C3 preview mode.

    But when I export to HTML5, it worked fine. Only in preview mode will it be rejected.

    I have no way to make the target server to update to https, Because it's not my server.

    The current temporary solution is that I built a reverse proxy server locally to proxy this link to an https server, but this method is not very convenient.

    Tagged:

  • One of the quickest methods to try is set "Downscaling quality" to "High quality".

    "Project Properties - Advanced"

  • You can try to replace the condition below with 'else'.

    (Press 'x' to quickly add)

  • Maybe we can find a way to tell the AI ​​the latest Construct status.

    For example, we can train the AI ​​by passing some data:

    • Construct documentation (.md)
    • Construct built-in APIs (.d.ts files)
    • Construct translation terms (POEditor)
    • Construct EventSheeet JSON Cheatsheet(json)
    • Simple Project from Example library (.json file)
    • Ashley's Blog(.md)

    Maybe we can try the recent DeepSeek and then deploy a local model for training. Let’s see if we can let AI help us directly generate some event block JSON for the eventsheet.

  • You do not have permission to view this post

  • We can use this code to get the status of this layer.

    	 runtime.getLayout("Game").getLayer("BuildingLayer")?.isSelfAndParentsVisible
    

    So how do you switch the state of the layer through the code?

    like this ?

    	 runtime.getLayout("Game").getLayer("BuildingLayer")?.SetSelfAndParentsVisible=true
    

    Is there such a function?

    By the way, we also need to switch the state of behavior, such as switching on or off.