Prominent's Recent Forum Activity

  • I was on r250, and updated to 262.. tried the default multiplayer example, and it said multiplayer not available.. I downgraded to 261, 259, 255, and 252.. it worked again for 252.

    I also tested an exported game from 250, while testing 255, and the 250 worked while the 255 didn't, so it is NOT an issue of servers being down.

    There's something wrong with the new versions of C2 (after 252) that prevents connecting to multiplayer server.

    I'm guessing it's related to the bug fix in 253 (Multiplayer: false indication of support on Edge)

  • What's the word on a possible C3 update?

    I won't be able to do anything with it until I update my computer (can't run c3).. which could be early next year.. c3 plugin system seems very confusing to me though.

    also, at the moment i dont have any incentive to use c3, considering there are other options more appealing to me.

  • Thanks R0J0hound ! That's interesting about the input blocking the events, and that execute js code seems to solve my problem.

    The capx is also interesting, though would be more work to incorporate I think, considering it doesn't have other user-friendly things like selecting text,etc.

    I'm going to use the execjs method!

  • I believe it's mainly an issue of how the keydown events are implemented in construct- they don't account for this scenario and cancel appropriately like they ought to.

  • I posted a bug about an issue Im having with key is down events.

    If you hold a key down, and then click an input box, the key is down will continue to think that the key is being held down.

    construct.net/forum/construct-2/bugs-21/key-is-down-bug-137376

    Does anyone have any workaround for this?

    I need a way to cancel the key is down event so that it stops firing- and to cancel it when an input gains focus. :\</p>

  • Problem Description

    when a form element gain focus, the key is down events continue to fire if the button was being pressed.

    Attach a Capx

    Capx: 1drv.ms/u/s!AhHSZHEulqh_ghe9x15zH6Z6WcoJ

    Description of Capx

    key is down events change text, a form input box to click while key is down.

    When you hold spacebar and click the inputbox, then release spacebar, it continues to fire the key is down event.

    Only when you click off the input and then press spacebar again and release it will it stop firing.

    Expected Result

    the key is down should stop firing if button is released while a form element is focused.

    Affected Browsers

    all

    vista

    r250

  • You can do it easily with the Chipmunk physics behavior. For example, you can do a on pre collide, check if the normal of the collision is pointing down(or maybe up?), and then ignore the collision. So you wouldn't collide if hitting it from a specific side.

    You can't do that sort of thing with the built in physics in construct. Chipmunk also has other useful features too.

  • I'd say they are relatively the same.

    The more conditions you add, the more it will have to process before running the actions.

    You can also have an event without any conditions, which will run every tick (you don't have to put the every tick condition).

  • Edit:

    I noticed that objects were still appearing and disappearing even though I was updating the synced variables, but the way I was updating them was by setting their variable with Self.variable (without any picking).

    I had a suspicion that some objects weren't setting their variable, So I put it into a for each loop to make sure each one was getting set, and this seems to fix the issue. There are sometimes rare cases when the latency is over 900 (when the browser of the host is minimized), but for the most part the objects stay.

    It also seems to only matter if the host is changing the variable, since peers set their values to the host's.

    I still added code to compensate for recreated objects, just in-case it does happen, since it can reset any un-synced variables and settings. On the host side, the objects will never randomly disappear (since it is the host).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is a known issue with multiplayer and the window out-of-focus implementation of certain browsers.

    I'd be interested to know more about this, if anyone has some details about it. I don't destroy or recreate any synced objects while my game is playing (except when peers connect/leave). So having objects disappear and reappear (with their non-synced values reset), and sometimes not recreated at all, is a bit concerning.

    I feel like it is related to the latency simulation.. but I haven't tested it with real-world high latency yet to find out.

    I tested it locally WITHOUT latency simulation, with nw.js minimized and it was alright.

    When I tested with simulation, I tried testing with simulation values of 0.000001 and minimized, and the latency would begin climbing up to 900s when minimized (objects disappearing while this happens), and then when unminimized the latency of the peer would fall back down below 50.

    So I think there is something within the simulation itself that is causing problems..

    again, i haven't tested with real-world high latency- but I have with low latency, locally, and when minimized the latency doesn't begin to climb(since the latency isn't simulated).

    Also keep in mind, that if the synced objects don't have their data changed much, they timeout quicker.

  • Also, another thing worth mentioning is that if the host's window is minimized, it seems as if data stops sending- like it is being paused(even though the setting to not pause while unfocused is correctly set).. I'm guessing the lag simulation uses the time in construct to alter the gameplay, but when minimized the time stops completely.

    So objects will be destroye and recreated on the peer side when this happens, even if the host is changing the data constantly- the minimized window prevents data sending.

    I'll create another bug report when I get the time..

  • Ashley , I was having this issue, and I figured out the cause.

    When synced objects have no changes to their positions(if its synced?) or synced instance variables, the peers will think these objects have timed out and destroy them (they don't get destroyed for the host).

    Simply by changing a synced variable every few ticks (on the host side?), it keeps the objects alive.

Prominent's avatar

Prominent

Member since 28 Apr, 2012

Twitter
Prominent has 9 followers

Trophy Case

  • 12-Year Club
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Email Verified

Progress

15/44
How to earn trophies