Quantcast
Channel: Questions in topic: "portals"
Viewing all articles
Browse latest Browse all 85

How do I render 2D Sprites partially (side to side teleport)

$
0
0
I'm new to Unity as well as game engines and am still learning how to deal with cameras, rendering and the like. My first project is an attempt to execute a lot of basic mechanical tropes in 2D platformers. I am using Unity in it's 2D layout with 2D assets. Currently, I'm trying to have the edges of the screen be connected, meaning if you jump off the right side of the screen, you will show up on the left side and vice-verse. This is very easy to do in the basic position (transform) sense, but I'm unsure how to approach actual rendering. **I'd like to have the sprite show up partially at each side of the screen if she is currently in between. I want to have 0 space between the left and right side of the screen. When you walk off the right side, the sprite starts appearing on the left side of the screen immediately.** Code samples are highly appreciated! Thank you.

Viewing all articles
Browse latest Browse all 85

Latest Images

Trending Articles



Latest Images