[r166] Functions being called twice

Bugs will be moved here once resolved.

Post » Thu Apr 10, 2014 5:39 am

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
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Thu Apr 10, 2014 3:49 pm

something-is-broken-with-r166_t101296

ASHLEY said that he found what could be wrong... and that hes going to fix it in the next beta :) lets hope ashley fix it :)
it was really frustrating when i notice it, i thought it was an error in my code... thankfully not, i was scared XD
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Tue Apr 15, 2014 2:52 pm

Closing as likely duplicate of above issue.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests