Hello everyone,
It would be very nice if someone could look over this and help me fixing that issue:
I just started working at my first Unityproject with the 2D-Toolkit. In the picture I attached, you can see how the wall, exists out of single parts is drawn. But you can also see that one strip in the left wall. This stripe is always appearing at a different location. Here is the script which is positioning the sprites:
//Walls
for(int j = 0; j < width +2; j++){
Instantiate(tileWall,new Vector3(4096 + (j * groundbounds.extents.x) + (wallbounds.extents.x),
4096 - (j * groundbounds.extents.y) + (wallbounds.extents.y), -j - 1), Quaternion.Euler(0, 0, 0));
}
for (int i = 0; i < height + 2; i++){
Instantiate(tileWallLeft,new Vector3(4096 - (i * groundbounds.extents.x) - (wallbounds.extents.x),
4096 - (i * groundbounds.extents.y) + (wallbounds.extents.y), -i - 1), Quaternion.Euler(0, 0, 0));
}
If anyone knows how to fix it our could suggest me another way how to render that scene, I would be very thankful.
Regards,
Stoneman