solved - (not a bug)

Bugs will be moved here once resolved.

Post » Mon Jun 15, 2015 9:35 am

Problem Description
multiple overlapping objects are processed in a single event

Attach a Capx
[url]http://www.file-upload.net/download-10691361/overlapping.capx.html
[/url]

Description of Capx
drag the red square over the blue (one by one and both at the same time) - the script has only the overlapping event and an event counter

Steps to Reproduce Bug
  • Step 1: drag the red square over a single blue -> counter = 1 then over the other blue square -> counter =2
  • Step 2: drag the red square over both blue (where they overlapping) -> counter = 1

    Observed Result
    multiple overlapping objects are processed in a single event

    Expected Result
    each overlapping event must processed seperately

    Affected Browsers
    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

Operating System and Service Pack
Win7 SP1

Construct 2 Version ID
r207


If this is not a bug please help me to get the correct number of overlapped instances
Last edited by mercuryus on Mon Jun 15, 2015 11:22 am, edited 2 times in total.
Image Image Image
B
42
S
22
G
15
Posts: 376
Reputation: 12,223

Post » Mon Jun 15, 2015 10:42 am

This is not a bug, its normal picking in C2. When the red square overlap the blue squares it picks all blue squares that meets the conditions in the case as you overlap both it picks both of them and then execute the code, so the counter should be 1 as you write.

Since you are working with several blue squares you have to add a "For each Blue square" to the condition, then it will count them separately and the counter will be 2 when you overlap both.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Mon Jun 15, 2015 11:16 am

@nimos100 thank you for the hint!
Image Image Image
B
42
S
22
G
15
Posts: 376
Reputation: 12,223


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest