solved - (not a bug)

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Problem Description

    multiple overlapping objects are processed in a single event

    Attach a Capx

    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


    If this is not a bug please help me to get the correct number of overlapped instances

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • nimos100 thank you for the hint!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)