KawaiiNya's Forum Posts

  • Now it Editor, but in future in runtime too.

  • I have "item" consists of 3 9-patches united in container.

    How do i spawn that whole container with default properties on layout without having to place 9-patches individually?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have 9-patch which i need to resize only horizontal and not vertical.

    For example i have an objects TableTop with Solid behavior, and TableLegs, whicj caracter can overlap.

    Both objects unite as container.

    TableTop must be resizable in all directions, but TableLegs only horizontal.

    I get needed visual result with transparent "resizable borders" and container select mode "All", but that not i am exactly looking for.

    Tagged:

  • Nice. But what if my button is a container with a text attached to it, which get offset +1 +1 when cursor is hovered? If i set on every tick return offset by -1 -1 my text will fly away.

    I need to register mouseleave event =((

  • I CAN use use events every tick, but it does not cover my needs.

    For example I have 4 custom "buttons" with sprite animations 0 as default and 1 as highlight very close to each other.

    I have events "Mouse Cursor is over Button -> Set animation to 1" and "Mouse [NOT] Cursor is over Button -> Set animation to 0".

    If I VERY FAST move cursor from fist to fourth "button" all objects will be highlighted.

    So I need to reset animation to 0 when cursor left object to prevent that behavior.

    It easily done with CSS/JS, but I dont understand how to write custom JS function in Construct3, or cant find built-it visual-code element for mouseenter and mouseleave events.

    P.S. Yes, in theory I can implement some variables to check active element and reset all non-active, but it seems to be invalid approach.

  • I have many instances of object with states of "default" and "highlight" and I need to change states of exact instance when mouse cursor enters its area and leave it.

    I do not want to check it every tick, but when event triggers.

    I tried multiple approaches and cant do it "right" and without JS-code. Im a poor programmer and cannot understand how JS-code works in Construct3 =\</p>

  • Built-in text-input not give me what i want (yes, i know how to use CSS) and i want to create one with sprites and text tools.

    Dont know how initialize user-input on-click...

    Maybe i can use "transparent" text-input and some overlays, but dont think its a good idea.

    Tagged:

  • I owe you a beer... >_>

  • Aaaaaaand still im doing something wrong.

    I have object BUSH and 10 copies of it on Layout.

    BUSH have variables Key and Value. Key of each instance is the same, for example Rose, value is sequential number and different for each instance. And of course UID each unique.

    I have text area Debug.

    I have events:

    Mouse on Left button Clicked

    Sub-event:

    Text Name "Debug" -> Append BUSH.Key, Append BUSH.Value, Append BUSH.UID

    And output is always the same (from the first copie of BUSH on Layout - Rose 1 16) no matter which instance was clicked.

  • Ok, finally get it =(

    It's ObjectName.VariableName

    Double sorry =)

    And triple thanks.

  • Or Object.Name or similar.

  • Nope. Still dont get how to do it.

    I have Mouse - On button Clicked... and then im stuck.

    Ok, I have "Console" text area... I know I can to add text to it.

    But which expression i have to use?

    There isn't something like Object.Get("Name")

  • When you click the bush it gets the variable from it but you need to store it somewhere to compare later. Then you can pick all instances again and limit them by where name = variable and destroy them.

    Yes. And that is my question - how to get variable to store... or... ahh, im starting to understand - when i clicked an object i already get all variables from it and just need to store that i need.

    Many thanks!

  • If you use the mouse object condition 'on object clicked' it will pick the instance you are clicking, then as an action you can set a variable to object.name and you have it stored.

    I dont need to set variable, i need to get variable.

    For example i have 10 bushes, 5 roses and 5 daisies.

    I click for random buch and need to destroy all bushes of the same type.

  • I have 10 same sprites, some with same value of variable "Name" (string), and some with different value.

    I need to get "Name" of clicked sprite to change all sprites with same "name".