oosyrag's Forum Posts

  • [quote:2th7iv4l]If a layer's Global property is set to Yes, then every layer in the project with the same name is overridden by that layer. The initial objects, as well as its properties, are used instead of the other layer's own content and properties. Then changes can be made once to the original global layer, and the changes will be applied project-wide.

    The way I read it, a global layer is like an "include" for the layout editor, analogous to "include" for event sheets. It allows you to make layout editor changes for a specific layer that will be reflected everywhere in the project where the layer is included.

    This is in contrast to the "global" object property, which simply prevents objects from being destroyed between layouts.

    I can see how the naming can cause confusion, their function is significantly different.

    If you are using events to set up your GUI global layer, you can have those events included in other layouts' event sheets as well. Generally speaking you shouldn't be referring to a specific UID where it would matter if the UID changes, but without seeing your specific setup I am unable to give any advice on how to work around this.

  • Each browser has some default stylings applied to everything... I believe that is the input:focus selector, which we can't get to in construct.

    You might want to try setting outline:none to see if it works.

    Alternatively:

    outline-style:none;

    box-shadow:none;

    border-color:transparent;

    It is a pain, but stuff like that is why it is recommended to just use sprites instead.

  • If you want to use CSS, create your tooltip from a form element object such as list (list box), textbox, or button object, and style as required.

    Otherwise, use a 9patch/sprite/tiledbackground with text/spritefont object together in a container.

  • Your event to add the dictionary key is on its own event sheet that is not included or linked to your layout. So it doesn't run.

    If you go to your layout properties and change the event sheet to NewCluesTextBox, it works fine.

    To load, on trigger - set textbox text to dictionary.get("key").

  • https://construct3.ideas.aha.io/ideas/C3-I-183

    Ps: My guess is that this is not a high priority for the team. Form elements are generally used sparingly. Sprites are preferred and also more efficient and consistent in terms of getting a particular visual representation.

  • The textbox.text expression will get whatever is written in the textbox when saving, and the textbox set text action can be used when loading.

    How exactly you want to format the data is up to you.

  • I'm currently using that, but it is subject to the user changing the system clock.

    Workaround is to use multiplayer plugin to connect to a time server, but that only works when online.

  • Are you able to create this system locally for a single player?

    Write, save, and load messages using your preferred data structure. An array would be suitable.

    If you can do it locally, send the entire array or dictionary object as json to a firebase/database key which all your users can access. Everyone user will download and update the same data on your database server.

  • Android has https://developer.android.com/reference ... dRealtime(), which returns the time since boot for the device, including idle time. Is there a way to utilize this through Construct? I'm guessing there is a similar feature for ios but accessed differently, and I'm not sure if desktop/html5 has any equivalent?

    This is used for the purpose of keeping track of idle time while offline, and preventing system clock changing shenanigans.

  • "make a grid with the size I am using for each tile and align each tile into that grid" is pretty much all there is to it.

    Also make sure your tiles are seamless to begin with, and that they dont "bleed" into each other.

    A picture of your tilemap would help diagnose any other issues.

  • Does your bullet fly straight? You can run a raycast.

    Events: https://www.scirra.com/tutorials/902/li ... raycasting

    Plugin: plugin-jcw-trace-raycast_t172320

    If you are using physics, parabola-tracjectory-tracing-with-physics-box2d_t77802?start=10 might be of help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Project properties: first layout

  • Use an invisible helper sprite with the scrollto behavior as your "camera". How you move it in difference situations is up to you.

  • Basically you need three copies of your objects that all mirror each other, "off screen" to the left and the right.

    Or you can try looking into the paster plugin.