jaytee's Forum Posts

  • fongka2 duuude that is my first thought too! thank you for replying...

  • Title. Is there any website or forum to confirm this? Thanks. Ashley

    Tagged:

  • As previously mentioned, it's best to create objects in an inaccessible layout so that their instances are pre-created at runtime. However, in terms of performance, is it okay to have many instances for design purposes (see pic; equipment objects & texts), or should I destroy excess instances and retain only one? Thanks.

  • The necro post below is about when the user disconnects from the server and reconnect, the game/server still says the user is still in a room even if its false which doesnt allow leaving nor joining a room

    construct.net/en/forum/construct-3/how-do-i-8/multiplayer-broken-163229

    I solved this issue by using disconnect from room right on the trigger on signaling disconnected then wait 1 sec before reconnecting.

    How come that works (disconnect from room) if the user is no longer connected the server? This seems to reset past credentials as well from the user.

    Also is this just a c2 issue now and fixed on c3? Tnx.

  • 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

  • this will put object at the center of the layout

    set position X = layout.width/2

    set position Y = layout.height/2

    but if you want at the center of the window

    set position X = (ViewportLeft(0)+ViewportRight(0)) / 2

    set position Y = (ViewportTop(0)+ViewportBottom(0)) / 2

  • Its so confusing that one of my project, the timer continuous to run even when inactive/minimized but on one 1-2 more project/window, their timer stops then start from where it stopped.

    The difference I can say is that one project is larger than the others (which is basically just sprite with time behavior). Is this related?

  • Title. And the exported type is NWJS.

  • Set Fullscreen in browser -> scale inner. This will fill the screen without black borders but objects should not be at the edge of window area for both on and off screen objects to avoid showing or cut objects.

  • The initial trigger of event is yet to finish (2 sec later) and once done it runs the rest of the action. That is why you are seeing instant sleeping animation which is from that initial trigger.

    To continuously trigger this event, you need to add 1 more condition such as "enemy1 animation is wake"

  • This is for a loading screen and I want to observe how long it takes. I've read that Every X second is based on real-world time and not ticks but I notice a "pause" on long function calls.

    Below is a simplified version of my code:

    Count = 0

    Start of layout

    -> Run = false

    -> Count = 1

    Count = 1 -> ajax request

    On AJAX complete -> Run = true

    Run = true, trigger once //modifying array of X=1000 size per call

    -> call function(1)

    -> call function(2)

    -> call function(3)

    -> call function(4)

    Every X Second -> add 1 to Count

    ---------

    After 3 seconds real time...

    Expected result: count = 4

    Actual result: count = 1 then only start adding after function calls finishes

    What am I misunderstanding here?

    Tagged:

  • Right now, I created a Text object for each stat row (name, pts, etc).

    I'm just wondering if there is another way for this.

    Thank you.

    Tagged:

  • After enabling DragDrop at Hold over object, I need to click again to Drag the object.

    Is there a way to remove the additional click? I have other conditions that runs at a single click.

    Thank you.

  • winstreak thank you so much for the video!

  • Is there any way to minimize the code on the image?

    I'm not really in a hurry to update that but I just want to gain further knowledge.

    Thanks!