TENSHIYI's Recent Forum Activity

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

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

  • Try Construct 3

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

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

TENSHIYI's avatar

TENSHIYI

Member since 30 May, 2019

Twitter
TENSHIYI has 2 followers

Trophy Case

  • 6-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies