SquishyMiku's Forum Posts

  • ugh...another damn problem.

    spr_invSlot is now showing, visible at right position.

    But now my window object ain't showing at all, i set it visible and set it at right position, nothing works.

  • *hits myself*

    just found my problem @

    its working now

  • hi,

    i created an spr_invSlot which as frames and an instance variable called "SlotID"

    i made an object which is my character window, and on this window has 10 gear icons pinned to it which is the spr_invSlot

    and when i start layout, it shows it perfectly and the objects are pinned to it.

    Now my problem is that, I made another object if i click this button it opens the object, well it does show the object so that works perfectly.

    But on this object it should have one object pinned to it, which is the spr_invSlot frame 19, if click button it opens window and has this object pinned to it. it doesn't show the object at all,

    idk what is wrong, i did exactly what i did to my other object but it doesn't work with this one.

    Is it because the spr_invSlot can only be pin to one object ???

  • spr_invSlot frame 0 and 27 is now showing.

    but they are not pin to my window object sigh..

    i tested this on construct 3 and it works...idk what is wrong

  • and now another problem happened.

    spr_invSlot frame 0 and 27 doesn't pin to my window object.

    they don't show when i click the icon.

  • lol ok, the spawn object did not work, still kept opening more windows.

    so I removed that, put my object on layer 0, moved it out of the layout.

    when click icon, it opens window, i set it at the right position XD it working now.

  • just found a solution :)

    i removed "on start of layout > destroy window object"

    I moved the window outside of the layout.

    When click icon, that icon spawns another object which is the window object. Then i just set the window object to the position i want xD

    and under click icon i put "Trigger once while true"

    so it is now working perfectly, cant believe i haven't thought of this lol

    But Thanks a lot for your help :)

  • Yeah I set the open to false after the left button is clicked.

    but it still opens more than one window

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • uh idk if i did it right lol

  • if i put the window object invisible

    and if click on icon

    under it Trigger once while true > set window object visible

    That works perfect, but if window object is invisible and when i start layout and click every where on screen it opens the window. So object is there.

    so this is why i set it to create object

    but now the trigger once isn't working.

  • some object in construct that is acting as a window.

  • I put

    on left click icon

    under it is Trigger once while true > set object visible

    that works perfect, it opens it once.

    But for some reason when its

    on left click icon

    under it is trigger once while true > System - create object on layer 0

    that doesn't work, it keeps opening more and more windows.

  • Lol i see my problem now, i put the Trigger once while true at wrong place.

  • Hi,

    if i click on icon, it opens window. Window is now visible and showing but if i click the icon again it opens same window again, now there is two windows.. I want to know how can I make it only show one?

    Like, if u click icon it opens window, if click icon again it wont open window because it is already opened. I tried the "Trigger Once" but that ain't helping.