0 Favourites

[r166] Functions being called twice

  • 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

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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

  • Closing as likely duplicate of above issue.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
40 2,965
suntank's avatar
suntank
Unread hot topic
0 Favourites
[Plugin] Call Javascript
50 35,608
jailce's avatar
jailce
Unread hot topic
0 Favourites
Understanding Draw Calls.
42 2,994
newt's avatar
newt