How to Create 2D Rain in Unity Top Down Game - Tutorial

preview_player
Показать описание
Learn how to create a 2D Rain Effect (similar to Pokemon games) for a Top Down game in Unity using Particle system.

Learn hot to create a 2D Farm game:

Rain Ripple spritesheet download link:

Assets used:

𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱!

𝗣𝗟𝗘𝗔𝗦𝗘 support the channel:

00:00 Introduction
00:40 Rain drops particle system
03:25 Changing particle movement direction
06:13 Make rain follow player
07:30 Rain Ripples particle system
10:15 Texture Sheet Animation in Particle System
13:36 Making rain drops transparent

#unity2d #gamedev #sunnyvalleystudio
Рекомендации по теме
Комментарии
Автор

Really nice explanation, thanks for your time sir

victormr
Автор

Oh wow, I get new way for my game, btw thanks for dungeon system with placing AI, you are the best! I will apply this rain system and tag you after finish

AwataraGame
Автор

Thanks for the video, I think I can remake it to snow fall.

deniscooper
Автор

Hey, nice content! Thanks! Would be awesome if you make a video about topdown weather effects, like cloud shadows, thunders, etc.

lenonazzi
Автор

You can change the Sorting Layer of the ripples to make them show only behind character / trees.

I don't have a solution to make the particles correctly respect Y sorting of the sprites. The best thing that can be done is to spawn the rain ripples below the house / tress and add another particle system that will spawn rain drops on the roof of the house (other objects that should be affected by the rain).

Here is the effect:

I hope it helps!

SunnyValleyStudio
Автор

Select the GameObject that has the Particle System component attached.
In the Inspector window, locate the Particle System component and expand its settings.
Scroll down to the Modules section and click on the Add Curve button (+) next to the Collision module.
In the Collision module, set the Collision Type to World.
Enable the Plane and Set Plane From Bounds options.
In the Plane setting, choose the player's hitbox GameObject or a GameObject that encompasses the player.
Adjust the Collision Quality as needed to balance performance and accuracy.

If you want to exclude specific layers from particle collisions, you can adjust the Layer Collision settings in the Collision module accordingly.

lmaonader
Автор

Idea: If you use a Flip script to flip the player sprite, don't put the VFX on the player but on the camera instead 😁 otherwise the rain will act strange.

mikmultivers
Автор

When I get to the texture sheet animation, nothing is showing up. I see the orange Unity squares in the particle generator, but the ripples are invisible or something. I'll also note, there is no image in the little box next to the main renderer menu (top left of the component). What could be the issue here?

fastpicker
Автор

hey thanks for the video, I think mine doesn't work because I don't have the same camera as you, my game use only canvas. What do you use as a camera, or do you know what should I do to make it work with my UI ?

captainnoyaux
Автор

Is there any way of making it rain at random times?

phillipwebb
Автор

where can i get the rainripple sprite ?
is it free ?

itsjulyyyyyyyy
Автор

hi sir the Rain Ripple spritesheet download link is not work, pls send a new one for me

harddz
Автор

Hi, I just wanted to inform you that your tutorial "Placement of items and enemies proceduraly" has the wrong GitHub link for the scripts, I would really appreciate if you can fix that. Happy Day!

mythofheroes
Автор

can you show us Rain Effect for platformers ??

ibrahemrafee