Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stoneman

Pages: [1]
1
Support / Re: Drawing "tile-sprites" to form one large object
« on: November 16, 2013, 12:26:38 pm »
I'm using the tk2dCamera (orthographic) with the settings as in the attachment. There is no difference when I zoom in. But when I move the camera the line appears at an other location.
Should I maybe let them overlap a bit or can I solve the problem also otherwise.

Ok. I've solven the problem otherwise. Thanks.

2
Support / Drawing "tile-sprites" to form one large object
« on: November 15, 2013, 09:11:43 pm »
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:
Code: [Select]
//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

Pages: [1]