oosyrag's Forum Posts

  • How you want to organize and load your keys is up for you to decide. The first step is to determine exactly what you want to do, then you will be able to ask specific questions about how to do specific things. If you are not specific, people are much less likely to help you. It is not easy to give advice to do "something".

    To display a key, use the Dictionary.Get("key") expression. For example,

    On Trigger -> Text Set text to Dictionary.Get("input_Name").

    This will set the text object to whatever was saved in the dictionary under the input_Name key.

    To add all keys to a listbox,

    On Trigger

    Dictionary For Each Key -> List Add item Dictionary.CurrentKey

    To use the list to select a key,

    List On Selection Changed -> Text Set text to Dictionary.Get(List.SelectedText)

  • I was saying that you literally did it right, but your event sheet was not linked to your layout so your event was not taking effect.

    https://www.dropbox.com/s/0mmv7nmte4fl1 ... .capx?dl=0

    As you type into the textbox, is is written into the dictionary object.

  • tx for thanks!

    I like the idea of xi and xf

  • AFAIK the only way to do it without families is to use two separate body segment objects (they can look the same), and alternate each segment.

  • Per dop's post:

    + System: On start of layout
    -> TiledBackground: Destroy
    
    | Global number x0? = 0
    | Global number y0? = 0
    
    + Mouse: On Left button Clicked
    -> System: Set x0 to Mouse.X
    -> System: Set y0 to Mouse.Y
    
    + Mouse: Left button is down
    + System: x0 ? Mouse.X
    + System: y0 ? Mouse.Y
    -> System: Create object TiledBackground on layer 0 at (x0, y0)
    -> TiledBackground: Set width to distance(x0,y0,Mouse.X,Mouse.Y)
    -> TiledBackground: Set angle toward (Mouse.X, Mouse.Y)
    -> System: Set x0 to Mouse.X
    -> System: Set y0 to Mouse.Y[/code:2c2a9beo]
    
    It works best with thin lines. For thicker lines, add a rounded "end cap" sprite to each ssegment.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Delta stands for change, and is commonly represented by dx, dy, ect.

    0 is used for origin, or first, while incremental numbers are used for a series or index.

    Is there any standard practice abbreviation or symbol for "last", "previous", or "next"?

  • Is your text object large enough to fit all the text?

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