Destroy object doesn't work on OR block

Bugs will be moved here once resolved.

Post » Tue Sep 02, 2014 6:31 pm

Hi. I found a bug.

Problem Description
On out of layout event I try to destroy object, but after Destroy action it keeps staying on a layout.

Attach a Capx
https://yadi.sk/d/cZrqjWGQau8qi

Description of Capx
It's just an example.

Steps to Reproduce Bug
Click to the bottom black rectangle. The blue circle will start to fall down. When it will be out of the layer the red one must be destroyed. But the red circle stays on the layout.

Observed Result
The red circle is staying on the layout when the blue circle is out of the layout.

Expected Result
The red circle must be destroyed when the blue circle is out of the layout.

Affected Browsers
  • Chrome: YES
  • Internet Explorer: YES

Operating System and Service Pack
Windows 7 SP1

Construct 2 Version ID
Release 178 (64-bit)
Last edited by MotoR on Wed Sep 03, 2014 9:11 am, edited 1 time in total.
B
5
S
1
Posts: 29
Reputation: 718

Post » Wed Sep 03, 2014 2:23 am

It worked fine for me. I tested it on chrome, Internet Explorer and Firefox, and both circles were destroyed.
B
6
S
1
Posts: 17
Reputation: 503

Post » Wed Sep 03, 2014 3:50 am

Which OS, service pack and version of Construct 2 do you have? 32 or 64?
B
5
S
1
Posts: 29
Reputation: 718

Post » Wed Sep 03, 2014 4:07 am

I have tested this example on another PC - the problem persists. Also Win7 SP1, Construct 2 Release 178 (64-bit).
B
5
S
1
Posts: 29
Reputation: 718

Post » Wed Sep 03, 2014 4:42 am

I've tried conditions as in picture below:
BugOR.jpg

@Ashley, I could be wrong and missing something but my hypothesis from the case is the OR block seems to behave like an AND block.

r178
win7 sp1 64

@MotoR I'm thankful to you for this finding, finally I figured out what the hell is wrong with my events. :D
You do not have the required permissions to view the files attached to this post.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Post » Wed Sep 03, 2014 6:13 am

the OR block seems to behave like an AND block


I created the second example that shows that the OR block works right. In this example when the blue circle is outside the text "The blue circle is outside!" becomes visible but the red circle is not destroyed.

Thats's the second example:
https://yadi.sk/d/bSP-X9rwav7XW

I'm thankful to you for this finding, finally I figured out what the hell is wrong with my events.


The second example shows that events work right. But "Destroy" action does not work.
B
5
S
1
Posts: 29
Reputation: 718

Post » Wed Sep 03, 2014 6:38 am

MotoR wrote:But "Destroy" action does not work.

Oh you're on to something, does it means that destroy object doesn't work on OR block perhaps the best description for the bug? What do you think?

It seems we have narrowed it down to the root cause I think.
OR block = no bug
Destroy object = no bug
Or block + destroy object = bug

In my project, it's hard to tell because I got a lot of action/condition in it, and awful lot of nesting, "destroy" is a part of it. I've separated it into different blocks at the moment to get it working.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Post » Wed Sep 03, 2014 9:07 am

OR block = no bug
Destroy object = no bug
Or block + destroy object = bug


Yes, you're right. It works so.

I've separated it into different blocks at the moment to get it working.


Yes. If I call the function and do all destroy actions in it - objects will be destroyed correctly. 3-d example: https://yadi.sk/d/hfq_N7ouavoox

However, I think that the bug must be fixed anyway.
B
5
S
1
Posts: 29
Reputation: 718

Post » Wed Sep 03, 2014 9:14 am

DuckfaceNinja wrote:Oh you're on to something, does it means that destroy object doesn't work on OR block perhaps the best description for the bug? What do you think?


Thanks. I agree with it. I changed the topic title :)
B
5
S
1
Posts: 29
Reputation: 718

Post » Wed Sep 03, 2014 9:23 am

MotoR wrote:However, I think that the bug must be fixed anyway.

Yep, its a must. I've been dwelling for weeks wondering what's wrong. It's quite easy to miss if events actions/conditions have already expanded substantially.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests