Impact

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

9 years ago by Echo

So I'm currently creating a simple city builder for a school project, we've got the core functionality in place so now we're trying to make things look a little nicer. Since we didn't use an isometric map ( couldn't figure it out with impactjs ), we want to add the illusion of depth by having buildings bellow roads have a bit of overlap.

It's easy enough to implement an image that is slightly larger than the tile it's sitting in, but the image extends below the tile. I'm guessing this has to do with the way javascript or impact loads images by default, anchoring them to the top of the element it's contained in or something.

http://s3.postimg.org/86une19kj/overlap.jpg

In the above image you can see the building is overlapping the road below it. Is there any way of making it do the opposite and extend ABOVE the tile?

Any help in this would be greatly appreciated!

9 years ago by Apiheld

Is the building an entity? Basically, you can achieve depth by re-arranging the layers in Weltmeister. A layer can also go ABOVE the entity layer in the layer manager on the right-hand side. If your road-layer is above the layer containing the building, the road should overlap the building.

Additionally, you could place parts of the roof in an extra layer and then it looks like the roof is above the street (at the top).
Page 1 of 1
« first « previous next › last »