[r166] Functions being called twice

0 favourites
  • 3 posts
From the Asset Store
Basic clone of a 80's arcade game called Gyruss that was quite fun to play!
  • Problem Description

    This may be related to Lunatrap's bug, but I didn't want to hijack that thread.

    I've got a function being called twice in a row. In r165, SwitchPlayer() is called once. In r166, SwitchPlayer() is called twice in a row, by itself.

    Description of Capx

    This is my multi-player Tic-Tac-Toe game (again). I've had to strip out my third-part plugins, but was able to add a button that shows the same problem.

    Steps to Reproduce Bug

    • Start on Layout Login
    • Press OK
    • Duplicate the browser tab to get a second instance running.
    • Press OK
    • Press the "Press Me To Test" button on one of the instances.

    Observed Result

    In r165 you'll see:

    fnc BEFORE SwitchPlayer() Browser_plugin.js:559

    SwitchPlayer()-IN Browser_plugin.js:559

    SwitchPlayer()-OUT Browser_plugin.js:559

    fnc AFTER SwitchPlayer() Browser_plugin.js:559

    In r166 you'll see:

    fnc BEFORE SwitchPlayer() Browser_plugin.js:559

    SwitchPlayer()-IN Browser_plugin.js:559

    SwitchPlayer()-OUT Browser_plugin.js:559

    SwitchPlayer()-IN Browser_plugin.js:559

    SwitchPlayer()-OUT Browser_plugin.js:559

    fnc AFTER SwitchPlayer() Browser_plugin.js:559

    Expected Result

    Same behaviour as r165...

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (N/A)

    Operating System and Service Pack

    Win 7 SP1

    Construct 2 Version ID

    166

  • ASHLEY said that he found what could be wrong... and that hes going to fix it in the next beta

    it was really frustrating when i notice it, i thought it was an error in my code... thankfully not, i was scared XD

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as likely duplicate of above issue.

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