TiledBackground Collision Poligon

Bugs will be moved here once resolved.

Post » Fri Dec 12, 2014 3:48 pm

Problem Description
The collision poligon that is shown for some tiled Backgrounds are weird...

Attach a Capx
backgroundtest.rar



Description of Capx
The game works fine, but there is this weird collision poligon in some of my tiled backgrounds, that are shown in the editors mode with colliders on.

THE PROBLEM IS WHEN LOADED. Once the project is saved and reopened the problem is solved.

Steps to Reproduce Bug
  • Create a tiledbackground
  • Open a .png with transparent parts
  • Activate view collision poligons
  • Save and change the tiledbackground with other .png with different transparent parts

Observed Result
In the editors mode the tiled background creates a collision poligon very weird.

Expected Result
Bounding box in every tiled background


Operating System and Service Pack
Windows 7 SP1

Construct 2 Version ID
BETA 191
You do not have the required permissions to view the files attached to this post.
Last edited by kingpirux on Wed Dec 17, 2014 4:55 pm, edited 1 time in total.
B
22
S
4
Posts: 106
Reputation: 1,360

Post » Fri Dec 12, 2014 7:01 pm

How is this any different than the other bug report you made?
Create a minimal capx showing what you are doing.
That way Ashley will know that you are actually talking about the tiled background object, and not some third party plug, or some weird driver issue.
Image ImageImage
B
171
S
50
G
179
Posts: 8,382
Reputation: 113,458

Post » Wed Dec 17, 2014 4:50 pm

:I cause i put the picture of what happend, is not possible to recreate in capx, because, it's self done, just test it, if you save and reopen the problem is fixed.
any way ill try to upload a capx....
B
22
S
4
Posts: 106
Reputation: 1,360

Post » Tue Dec 23, 2014 11:29 pm

This is a minor bug in the editor. On import of an image into the tiled background object, C2 guesses the collision polygon and draws that line in the editor. At run time the bounding box is used to detect collisions, so the problem is trivial.

The capx below demo's the problem and that the bounding box is used for collision detection. Drag the sprite over the tiled background image to check its collision.

tiledbackground overlap.capx
You do not have the required permissions to view the files attached to this post.
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,248
Reputation: 46,470

Post » Mon Jan 05, 2015 4:41 pm

Thanks, should be fixed in the next build.
Scirra Founder
B
399
S
236
G
89
Posts: 24,524
Reputation: 195,380


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests