pause on unfocus

0 favourites
  • 7 posts
  • hi all comunity,

    is there a way to not send pause the game when you change the window?

  • nope. It's a browser problem and it really sucks. Out of all the problems this problem is a killer for online game s ;|

  • but my is a multiplayer real time shooter game there's no way for solved this?

  • LimonSpace, the easiest way to pause on unfocus is to click on your project name in the projects bar, then scroll down in the Properties bar until you see the option "Pause on unfocus", then set that to yes. The game would then be paused for that user.

    But, since you have a multiplayer game, you may want to pause the game for all players. So, here's the steps to handle that event:

    1. Add the Browser plugin to one of your layouts.

    2. Create a new event for Browser."On suspended" and Browser."On resumed". These can be found at the bottom in the "Page" section.

    3. Add what you want to happen, like a timescale of 0, and sending a message to all other players to also pause.

  • i don't wanna the pause on my game,this is the problem

    i don't wanna the pause on my game,this is the problem.

    .09 ms each server sends data to the various players in unfocus and this is right, but the bad thing is that when the player returns to the window, he sees all the movements and things that happened so fast to stabilize and this is horrible , I do not want it. <img src="smileys/smiley19.gif" border="0" align="middle" />

  • SOLVED, i create a modal pop-up on start button click and it don't have scroll bar menu bar and is not resizable <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • <script type="text/javascript">

    function modalWin() {

    if (window.showModalDialog) {

    window.showModalDialog('contenutoprotetto.php','_blank','dialogWidth:820px;dialogHeight:1150px');

    } else {

    window.open('contenutoprotetto.php','_blank', 'height=820,width=1150,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');

    }

    }

    </script>

    <button onclick="modalWin()"

    style="position:absolute;

         top:80px;

         left: 550px;

         height: 52px;

         width: 156px;

         color: #fff;

         font-weight: bold;

         opacity: 0.7;

         border: 1px solid #999;

         -moz-border-radius: 10px;

         -webkit-border-radius: 10px;

         border-radius: 10px;

         -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .6);

         -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .6);

         box-shadow: 0 0 .5em rgba(0, 0, 0, .6);

         -webkit-appearance: none;

         -moz-transition: opacity .5s;

         -webkit-transition: opacity .5s;

         -o-transition: opacity .5s;

         transition: opacity .5s;

         display: block;

         background-image:url('/css/images/start.jpg');

    ">

    </button>

    only work on firefox and IE

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