This forum is read only and just serves as an archive. If you have any questions, please post them on

1 decade ago by Aitor

I want to put some collision walls that surround the canvas, so that the entities can't go out of the screen, but can move everywhere inside the canvas. I've tried to simply make the collision layer bigger than the background layer in weltmeister, but that puts the extra tiles in the right-bottom side of the map, so I can't put collision walls on the top and left sides of the map. So I want to know if there is a way to make a collision layer that "surrounds" another layer (so they don't have the same top-left position) so that I can have a collision map that falls outside the canvas. I haven't found any way to do this in weltmeister
Thanks in advance!

1 decade ago by gxxaxx

Here is a link to one of several discussions on how to handle this.

Basically you detect when an entity is "leaving" the map and enforce a collision yourself.

Alternately, you can make your map 2 squares taller and wider than you want.
Then put black or empty tiles around the outer edge of the map.
You will then be able to put in collision tiles. But there will be no wall visible.

You'll have to make some magic with the canvas on the webpage to keep it from looking weird.

But this should work. Not actually sure, since I used the first method.

Hope this helps.

1 decade ago by Aitor

Thank you a lot! I was thinking to do something like that, but I wanted to know if it could be done in weltmeister.
Page 1 of 1
« first « previous next › last »