How do I counter of players online

  • How make counter on layout which display in game how many players currently is playing in my game?

  • Is this using the multiplayer object or something else?

  • Is this using the multiplayer object or something else?

    no, this should work even if you have blank layout with online users counter (but maybe multiplayer plugin is needed for this i dont know)

  • https://www.dropbox.com/s/v2e42h67g3ne1 ... 1.png?dl=0

    something like that needed

    only variable how many peaple is currently on game/site

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This will probably require you to update a database value via your preferred backend service host/provider plugin whenever someone logs in or disconnects in your game, and pulling that value onto a web page via php. At least that is what I think would be the most straightforward way to do it. How exactly to do so is beyond me, and probably beyond the scope of these forums. Maybe someone with more experience in those topics may be able to help you though.

  • maybe anyone know how make this using parse / firebase server?

  • hi again, im still looking solution i have some clue

    i found visit counters

    http://www.reliablecounter.com/

    (currently im using html div pode to display visit counter

    maybe i should use other plugin? )

    This counters show only page visit

    but its working

    I search for online users counter i have many generated code but codes dont work

    For example i have that code for online users

    <script type="text/javascript" src="//www.licznikonline.pl/cnt/start.php?key=582936461"></script>

    or from other site

    <div><script charset="UTF-8" src="http://edodatki.pl/code/osoby-online?data%5BWidget%5D%5Bdescription%5D=Os%C3%B3b+online%3A&data%5BWidget%5D%5Burl%5D=czatujemy.pl&data%5BWidget%5D%5Bwidth%5D=120&data%5BWidget%5D%5Bcss%5D=white&data%5BWidget%5D%5Bcolor%5D=%23336699&data%5BWidget%5D%5Bstyle%5D=style_1" type="text/javascript"></script><a href="" title=""></a><a href="http://edodatki.pl/widget/osoby-online" title="Osoby online na stronÄ™">Osoby online na stronÄ™</a></div>

    other example

    <a href='http://www.counterliczniki.com'>liczniki odwiedzin</a> <script type='text/javascript' src='https://www.counterliczniki.com/auth.php?id=7818c660419c851f4a5e1e914ca5b41211828f72'></script>

    <script type="text/javascript" src="https://www.counterliczniki.com/pl/home/counter/255495/t/10"></script>

    MAybe its possible to change code type and modify for C2?

    maybe you know site with friendly code for C2?

    THIS IS WORKING CODE !!!

    "<a href='http://www.reliablecounter.com' target='_blank'><img src='http://www.reliablecounter.com/count.php?page=https://igamedeveloper.github.io/chat/&digit=style/plain/30/&reloads=0' alt='' title='' border='0'></a><br /><a href='http://www.fabbly.com' target='_blank' style='font-family: Geneva, Arial; font-size: 11px; color: #330010; text-decoration: none;'></a>"

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)