Stanik's Forum Posts

  • 5 posts
  • Hello. I'm working on multiplayer game and I have a problem with the change of instance variables if you are connected as a peer. The point is that I would like to at the moment of collision Player object with another sprites change instance variables.

    If I am logged in as a host problem does not occur and at the moment of colision the player with sprite value "health" is reduced by 1 but if you log on as a peer when a collision does not change.

    Below I include the function I used:

    Link to my game: http://serwer1694557.home.pl/

  • I was able to deal with this problem, I used to order a public list of servers STUN and TURN found here https://gist.github.com/yetithefoot/7592580. It was enough that I added in the file c2mp.js to "var DEFAULT_ICE_SERVER_LIST" other servers STUN and TURN, at the moment it looks like this:

    var DEFAULT_ICE_SERVER_LIST = [ 
    {url:'stun:stun01.sipphone.com'}, 
    {url:'stun:stun.ekiga.net'}, 
    {url:'stun:stun.fwdnet.net'}, 
    {url:'stun:stun.ideasip.com'}, 
    {url:'stun:stun.iptel.org'}, 
    {url:'stun:stun.rixtelecom.se'}, 
    {url:'stun:stun.schlund.de'}, 
    {url:'stun:stun.l.google.com:19302'}, 
    {url:'stun:stun1.l.google.com:19302'}, 
    {url:'stun:stun2.l.google.com:19302'}, 
    {url:'stun:stun3.l.google.com:19302'}, 
    {url:'stun:stun4.l.google.com:19302'}, 
    {url:'stun:stunserver.org'}, 
    {url:'stun:stun.softjoys.com'}, 
    {url:'stun:stun.voiparound.com'}, 
    {url:'stun:stun.voipbuster.com'}, 
    {url:'stun:stun.voipstunt.com'}, 
    {url:'stun:stun.voxgratia.org'}, 
    {url:'stun:stun.xten.com'}, 
    { 
    url: 'turn:numb.viagenie.ca', 
    credential: 'muazkh', 
    username: 'webrtc@live.com' 
    }, 
    { 
    url: 'turn:192.158.29.39:3478?transport=udp', 
    credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=', 
    username: '28224511:1379330808' 
    }, 
    { 
    url: 'turn:192.158.29.39:3478?transport=tcp', 
    credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=', 
    username: '28224511:1379330808' 
    } 
    ];[/code:jxuinrqm]
  • I created a multiplayer game based on the guide https://www.scirra.com/tutorials/915/mu ... -time-game. If I connect to a room with a computer that is in the same home network, there is no problem, but when you are trying to connect to it someone from another adresm ip becomes impossible. When the test on the finished template "Multiplayer - Real-time game" have the same problem.

    Anyone know how to deal with this problem?

    Link to my game: https://googledrive.com/host/0BzKy3gPmY ... index.html

  • I have read this guide but I still do not know how to fix it. I'm really grateful for your help.

    Link to my game: https://googledrive.com/host/0BzKy3gPmY ... index.html

  • Try Construct 3

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

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

    I created a multiplayer game based on the guide https://www.scirra.com/tutorials/915/mu ... -time-game. If I connect to a room with a computer that is in the same home network, there is no problem, but when you are trying to connect to it someone from another adresm ip becomes impossible

    Attach a Capx

    https://drive.google.com/file/d/0BzKy3g ... sp=sharing

    Observed Result

    When the test on the finished template "Multiplayer - Real-time game" have the same problem.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: NO

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    Release 216 (64-bit)

  • 5 posts