Jump to content

Scale Layer -> Doesn't Scale Collision


Deesr
 Share

Recommended Posts

Hello!

In my current project I need to scale up all layers, but still keep the collision map correct.

Im using

myLayer.scale.setTo(4, 4);

to scale the layer and

map.setCollisionByExclusion([0], true, myLayers);

to set the Collision.

 

When I work with a scale of 1, 1 it works as it should, but when I scale up all layers, the Collision Map seems out of place. It's sill there, but it out of place.

 

Even in debug mode it looks like it works, but it still collides somewhere else:

Image%202014-02-11%20at%2011.50.07%20vor

 

EDIT:

I figured out that is it exactly on the same position as it would be with the scale 1:1.

 

Let me know if there's a solution for this problem!

Thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...