filmov
tv
Parallax Effect in Unity Tutorial - Infinite Scrolling Background
Показать описание
In this video I'll show you how to create a Parallax 2D effect to mimic depth perspective in a 2d scene (orthographic camera).
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
📥 Get the Source Code 📥
🤝 Support Me 🤝
►🔗 Relevant Video Links 🔗
ᐅKenney Assets Background Elements
►🔗 Assets Shown In Video 🔗
ᐅMAIN SALE 💸
ᐅCorgi Engine - 2D + 2.5D Platformer
ᐅUltimate Character Controller
ᐅQuibli: Anime Shaders and Tools
ᐅAmplify Animation Pack
ᐅAtmospheric House (Modular)
ᐅSpace Graphics Toolkit
ᐅ2D+3D Infinite Runner Engine
ᐅFLASH DEALS ⚡
ᐅGrabbit - Editor Physics Transforms
ᐅPaint in 3D
ᐅPolygon Arsenal
ᐅClayxels
ᐅBoing Kit: Dynamic Bouncy Bones, Grass, Water, and More
ᐅLiving Particles
ᐅHEROIC FANTASY CREATURES FULL PACK Volume 1
In this video I'll show you how to create a Parallax 2D effect to mimic depth perspective in a 2d scene (orthographic camera). First we have to add in an image and make it the size of the screen, duplicate it 2 times, and put it to the side of the original image, so that the sprite can be around 3 times the screen size of the camera. These two extra sprites are made children of the main center sprite. This is for the looping. Then we write a script that moves the sprite in relation to the camera at a different speed. We loop the parallax effect by shifting the position of the sprite forwards if the camera starts to cut off the sprite render. We add in different layers to demonstrate the different environment movements, background, middleground, foreground, and repeat the process.
►⏱️ Timestamps ⏱️
0:00 Intro
0:43 Sponsorship
2:02 Sprite Layer Set up
7:11 Parallax Effect Script
11:32 Loop Parallax Effect
16:49 Add in Other Layers
19:41 Y Parallax Effect
22:19 Camera Move Script
22:41 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
#madewithunity #gamedev #unity
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
📥 Get the Source Code 📥
🤝 Support Me 🤝
►🔗 Relevant Video Links 🔗
ᐅKenney Assets Background Elements
►🔗 Assets Shown In Video 🔗
ᐅMAIN SALE 💸
ᐅCorgi Engine - 2D + 2.5D Platformer
ᐅUltimate Character Controller
ᐅQuibli: Anime Shaders and Tools
ᐅAmplify Animation Pack
ᐅAtmospheric House (Modular)
ᐅSpace Graphics Toolkit
ᐅ2D+3D Infinite Runner Engine
ᐅFLASH DEALS ⚡
ᐅGrabbit - Editor Physics Transforms
ᐅPaint in 3D
ᐅPolygon Arsenal
ᐅClayxels
ᐅBoing Kit: Dynamic Bouncy Bones, Grass, Water, and More
ᐅLiving Particles
ᐅHEROIC FANTASY CREATURES FULL PACK Volume 1
In this video I'll show you how to create a Parallax 2D effect to mimic depth perspective in a 2d scene (orthographic camera). First we have to add in an image and make it the size of the screen, duplicate it 2 times, and put it to the side of the original image, so that the sprite can be around 3 times the screen size of the camera. These two extra sprites are made children of the main center sprite. This is for the looping. Then we write a script that moves the sprite in relation to the camera at a different speed. We loop the parallax effect by shifting the position of the sprite forwards if the camera starts to cut off the sprite render. We add in different layers to demonstrate the different environment movements, background, middleground, foreground, and repeat the process.
►⏱️ Timestamps ⏱️
0:00 Intro
0:43 Sponsorship
2:02 Sprite Layer Set up
7:11 Parallax Effect Script
11:32 Loop Parallax Effect
16:49 Add in Other Layers
19:41 Y Parallax Effect
22:19 Camera Move Script
22:41 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
#madewithunity #gamedev #unity
Комментарии