rolandzarmy's Recent Forum Activity

  • Howdy how's it going everyone?

    I'm making an online top down shooter, close to the example project made in the multiplayer tutorial. I experience though that I have just uppgraded a bit the code (and without syncing much more objects) that the multiplayer is already a bit laggy.

    I've read a thread with a similar concern where people pointed out that it could be a flaw with the peer-to-peer or because of too much syncing/inputs.

    Is it so that I can't expect being able to make a more advanced online-game with a relatively big map, shadows, and a more complex system? Maybe it's too much for HTML5?

    Kind regards,

    Roland

  • Thank you for your reply EL Constructorr and eleanorjmorel !

    Both solutions are great. I did as Eleanor suggested to avoid syncing too many objects. In my common group I just use the "Shadow" sprite I made on the Game Layout, and put it to the player position and angle every tick.

  • I've tried to use the expression if Peerid is not equal to multiplayer.myID then destroy, but it seems to destroy the sprites for everyone...

    So I'm really stuck here.

  • Ashley do you have any answer to this por favor?

  • Hey!

    I have read all the multiplayer tutorials and when you let it sink in the puzzle pieces fall slowly into place.

    But one thing that didn't fall into place for me is if it is possible to have a sprite visible only for one person.

    In this example:

    Each player has a sprite that only them can see and not the others. To be more specific it's a shadow behind the player that hides what is behind them (like a dead angle).

    Thanks in advance for any replies.

  • Ashley

  • That would be great also to know if it is possible to "test" if a monster is in a shadow.

    This way I could make this:

  • Hm yeah I guess I could make a wall/player disappear if it's out of sight with raycasting or line of sight.

    But I don't think I could make a wall partly disappear? Like in the photo I posted in my first message.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • tarek2

    Ah hahah now I understand how we got confused. I was using the wrong terms^^

    oosyrag

    Yes thank you

  • I linked a copy of my project to give you the idea. My ultimate goal is just that things under shadows disappear and I don't know how to do that.

    drive.google.com/open

    Thank you in advance.

  • tarek2 Ashley

    Thank you that you gave me fast answers and help:)

  • I checked your capx but it doesn't solve the problem. Forget my project it just makes it more complicated.

    And just look at the picture Ashley sent.

    It is the painter's problem. Because of the Painter's algorith Construct 3 uses it's impossible to make Green over Blue and at the same time under Red.

    The best solution is exactly what Ashley said: cut the geen in half. And layer one part over Blue and the other one under Red.

    But I actually solved it on my own^^; because in my case Green is pinned to Blue. I can have Green at the highest layer and erase the overlapping part between Green and Blue.

    (So it looks as in the Painter's problem photo but the only difference is that the overlapping part between Green and Blue is erased)

    If that makes sense.

rolandzarmy's avatar

rolandzarmy

Member since 11 Apr, 2020

None one is following rolandzarmy yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies