- Home /
How to make a map switching system like Corpse Party Book of Shadows?
I'm new to Unity, needing some help.QQ My game is the fan work of Corpse Party Book of Shadows. So I want to make a map switching system like that, but I haven't any idea! I don't know what UI(or another component) I should use to achieve that. Maybe I should use Tilemaps?
there is the original: https://youtu.be/9P_qP3NJVzk
this is the system I made so far: https://youtu.be/nfcxYaxkf00,My game is the fan work of Corpse Party Book of Shadows. So I want to make a map switching system like that, but I haven't any idea! I don't know what UI(or another component) I should use to achieve that. Maybe I should use Tilemaps?
there is the original: https://youtu.be/9P_qP3NJVzk
this is the system I made so far: https://youtu.be/nfcxYaxkf00
Answer by Klarzahs · Jan 11, 2021 at 03:45 PM
Hi @njdf18
I would use a second camera, that has the whole map always in front of it. You can then render this camera output into a render texture, which you can overlay onto your 2d UI.
This way you will always have a static (i.e. non moving) map tiles, but if you want to move the 2d map view to the left, you can simply move the camera.
Note, that this is a little bit more computationally expensive than to simply have multiple sprites in your UI that you move around. The downside of using sprites is that you would have to calculate the offset, visibility etc of each of the sprites yourself.
Your answer
![](https://koobas.hobune.stream/wayback/20220613023103im_/https://answers.unity.com/themes/thub/images/avi.jpg)