Solid object's collision polys present in other layouts

Bugs will be moved here once resolved.

Post » Sat Jun 07, 2014 2:23 pm

Problem Description
Solid objects in one layout will have their collision polys present in the following layout.
If you have a layout with a solid, and then move to the next level (where this obect is not present), the collision polys will still be there.

Attach a Capx
We Are Alone.capx


Description of Capx
A game I'm working on where you can see this (very annoying) behavoiour.

Steps to Reproduce Bug
  • Open layout "1"
  • Move to the next layout by moving both characters to the red square
  • Observe the solid objects in the next layout (the cabin and the gravestones)
  • Move to the next layout again
  • The solid behaviour will be in the next layout, even if the objects themself are not there

Observed Result
Collision polys (?) are present in layout even if object itself is not (and the object is not Global)

Expected Result
Collision poly should not be there when object is not there

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Installed app Android: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Win 7 SP1

Construct 2 Version ID
Release 168
You do not have the required permissions to view the files attached to this post.
B
14
S
3
Posts: 123
Reputation: 1,571

Post » Sat Jun 07, 2014 3:14 pm

Try regenerating the pathfinding obstacle map on start of layout.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Sat Jun 07, 2014 3:22 pm

ramones wrote:Try regenerating the pathfinding obstacle map on start of layout.


Oh, my bad. I'm sorry, I didn't know that was required. Seems to be working.
B
14
S
3
Posts: 123
Reputation: 1,571

Post » Tue Jun 10, 2014 4:02 pm

The Pathfinding behavior automatically regenerates the obstacle map when changing layouts, so it should not be necessary to do that. Closing as there is no minimal repro, please submit a minimal .capx made from scratch demonstrating only the bug, as per the guidelines. This project has hundreds of events.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,782


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 14 guests