wait did not been removed under "restart layout"

Bugs will be moved here once resolved.

Post » Thu May 30, 2013 5:40 am

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/5779181/wait%20%2B%20restart%20layout.capx

Steps to reproduce:
1. run this capx
2. mouse click
3. see the message at console

Observed result:
A message at console.
Mouse click will run "action:restart layout", this action will destroy sprite, then trigger "on destroyed".
A "action:wait" will pending after "action:restart layout", the "action:log" will print message.
"action: restart layout" -> "condition: on destroyed" -> "action: wait" (still existed after restart layout)

Expected result:
The "action:wait" will be removed after "action:restart layout". So that no message will be printed.
(Or is it a feature?)

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes/no

Operating system & service pack:
win 7

Construct 2 version:
r132rexrainbow2013-05-30 05:47:41
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

Post » Thu May 30, 2013 2:06 pm

I think you're right... when changing to a different layout, it's intended that waits continue (in case you're sharing event sheets or using global objects). However when restarting a layout it seems expected to also reset waits. I've made the change for the next build.
Scirra Founder
B
399
S
236
G
89
Posts: 24,523
Reputation: 195,379

Post » Thu May 30, 2013 3:03 pm

Thank you very much.
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests