2D Drop Shadow Effect Using Sprites in Unity 3D - Tutorial

  Рет қаралды 42,835

GucioDevs

GucioDevs

Күн бұрын

Пікірлер: 80
@Malabyte
@Malabyte 5 жыл бұрын
As I watch through your old videos, a certain happiness rises within me. You inspired me to start pixel art and learn unity. I aspired to be able to draw as well as you can. Now I can. And I just wanna say thank you for making these videos and being a source of inspiration for me :)
@gmatheus10
@gmatheus10 5 жыл бұрын
Dude, Its so weird hearing your low pitch voice after watching all your 2D platformer tutorials
@RaylisTV
@RaylisTV 5 жыл бұрын
Why did you stop your channel ? You are the one who speaks the most clearly and you do not long vidéo and very helpfull (sorry for my english but you are the best)
@whatevsimbulletproof
@whatevsimbulletproof 5 жыл бұрын
Hey dude where u at? Discovered your channel and it's amazing! Thank you for all the uploads. Hope you're doing well.
@CanalPapaco
@CanalPapaco 6 жыл бұрын
HOLY FUCK, i've watched so many of your old videos and hearing your voice now took my breath away, seriously
@Lugmillord
@Lugmillord 4 жыл бұрын
Nice, thanks. Some additions (may help someone who reads it): - If you put the Material into the Resources folder, you can add it in the Start function via code so you don't have to assign it by hand each time. - I used the Sprites/Default Shader and a default Color of (0f, 0f, 0f, 50f/255f) to get a transparent shadow. - For perspective shadows on the ground I gave the shadow a local rotation of Quaternion.Euler(45f, -30f, 0f) instead of identity. Looking good so far, except if the object rotates along the x or y axis.
@kealiiaiwohi9097
@kealiiaiwohi9097 4 жыл бұрын
I'm having difficulties even getting the shadow Sprite to populate under my character, let alone the shadow actually casting. Script matches his perfectly. Any advice please
@Lugmillord
@Lugmillord 4 жыл бұрын
@@kealiiaiwohi9097 Ehm, if it "matches perfectly" I don't know what the issue could be. To make the shadow a child object of the sprite, you have to set the parent of the shadow's transform to the sprite's transform and that's it. Make sure you didn't switch up variables.
@kealiiaiwohi9097
@kealiiaiwohi9097 4 жыл бұрын
@@Lugmillord sorry dont mean to bother, but that would be the line: transShadow.parent = transCaster; ?
@kealiiaiwohi9097
@kealiiaiwohi9097 4 жыл бұрын
@@Lugmillord would it help to go ahead and create the child under the parent (which is a player sprite) and label it shadow?
@Lugmillord
@Lugmillord 4 жыл бұрын
@@kealiiaiwohi9097 Yes, that line.
@patricknloutsiri3440
@patricknloutsiri3440 2 жыл бұрын
I work in a beat em up and your video help me a lot for shadows thank you so much
@dami4335
@dami4335 7 жыл бұрын
This effect gives another life to the game.. Awesome! Thanks very much :)
@perttihakala9847
@perttihakala9847 2 жыл бұрын
superb! one of the most useful tutorials I've watched!
@Khud0
@Khud0 2 жыл бұрын
This shadow looks fantastic, and it's just what I was looking for. Thanks! :)
@Jimmy-sq5ox
@Jimmy-sq5ox 6 жыл бұрын
Can you make a tutorial for the particle effect in your games ? they are awesome!
@chillworksdev4145
@chillworksdev4145 5 жыл бұрын
This was fantastically helpful! Oh my god! It succeeded on one try with no confusion! Thank you so much, you did great!
@RAPHAELSC
@RAPHAELSC 4 жыл бұрын
Great tutorial! I will use it in the game I'm developing! Thanks.
@samuelrauer
@samuelrauer 7 жыл бұрын
Thank you so much!
@matthydev6005
@matthydev6005 4 жыл бұрын
Thx dude! Hope you will make more like this!
@Digitroni
@Digitroni 6 жыл бұрын
Hey, thank you very much for your Unity tutorials, I’m on my way to making my first game. Things are going pretty smooth, however the tutorials that you make for Unity 5 stop abruptly.
@benjamingerd4703
@benjamingerd4703 3 жыл бұрын
Thank you, this was really helpful!
@blackjackveteran
@blackjackveteran 3 жыл бұрын
thank you really helped me
@veno501
@veno501 6 жыл бұрын
Use the default sprite material, then set the RGB values of the renderer; no shader or material needed.
@gregghome3339
@gregghome3339 5 жыл бұрын
Thank you for that - Alpha channel of the shadow only works correctly when going this direction.
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Very Nice tutorial! THX
@Douglas128
@Douglas128 6 жыл бұрын
Great way to create shadows. A question. Where do I change the opacity of the shadow?
@Douglas128
@Douglas128 5 жыл бұрын
I found the answer. Just change the shader type of the Shadow Material to Sprites/Diffuse. Once done, just play with the A channel for the Shadow colour.
@Gandarufu
@Gandarufu 5 жыл бұрын
@@Douglas128 Thanks for the hint.
@hahahpizza
@hahahpizza 6 жыл бұрын
Gucio"Amazing"Dev!
@crazyphysicsdev2832
@crazyphysicsdev2832 6 жыл бұрын
Very helpful thank you so much!!!
@robacow
@robacow 6 жыл бұрын
How come my shadow sprite is bigger than my original sprite? the minimal scale for my sprite is 2, if my original sprite is scale 1, the shadow will be 2, but if I change my original sprite scale to 2, the shadow will stay at 2.....any idea why???
@robacow
@robacow 6 жыл бұрын
Found the problem, change the line "transShadow.parent = transCaster;" into "transShadow.SetParent(transCaster, false);" solves the problem. For reference docs.unity3d.com/ScriptReference/Transform.SetParent.html
@diegosuarez5473
@diegosuarez5473 6 жыл бұрын
THAAAAANKS!! GOOOD BLEEESS YOU MY FRIEND XDXD
@diegosuarez5473
@diegosuarez5473 6 жыл бұрын
when I change the size of my sprite, the size of my shadow stays about halfway, it seems to me that the same thing happens, but conversely, do you know what is due?
@diegosuarez5473
@diegosuarez5473 6 жыл бұрын
when I change the size of my sprite, the size of my shadow stays about halfway, it seems to me that the same thing happens, but conversely, do you know what is due?
@aleksd286
@aleksd286 5 жыл бұрын
Good stuff
@masterroshi2064
@masterroshi2064 6 жыл бұрын
I tried to learn unity from Bracklys. Is there any other youtube channels?
@slynizz1014
@slynizz1014 6 жыл бұрын
Master Roshi no one matches brackeys.
@masterroshi2064
@masterroshi2064 6 жыл бұрын
PatrickRMC Thanks man! You're the best xD
@LegendaryWizardPS
@LegendaryWizardPS 6 жыл бұрын
I personally find learning from KZbinrs a bit useless if you don't have the basics covered. You should look at Unity's Roll a Ball and Survival Shooter tutorials before scouring KZbin
@habdes4
@habdes4 6 жыл бұрын
N3K, Game Grind, Jimmy Vegas, SpeedTutor, quill18creates
@arthurmeuleman7048
@arthurmeuleman7048 6 жыл бұрын
blackthornprod
@cristiancarrizo6258
@cristiancarrizo6258 5 жыл бұрын
holy moly... you voice change a lot O_o
@asclepiiusunknown1090
@asclepiiusunknown1090 4 жыл бұрын
Still amazing to this day. Also, you all good?
@binhvongola
@binhvongola 6 ай бұрын
can't download a file, can you upload it again? thanks
@あれくす
@あれくす 5 жыл бұрын
By any chance, can you explain how to make a shader for shine effects as seen in bejeweled and other games where items that can be picked up have a shimmer/shine effect?
@krissichan3127
@krissichan3127 5 жыл бұрын
COME BACK DAD
@GawblyOG
@GawblyOG 7 жыл бұрын
What's the theme you're using on the ide?! btw great tutorial!!
@theonetruedonut
@theonetruedonut 4 жыл бұрын
Is there a way that one could use a smaller method for the particles of a particle system?
@arvin7334
@arvin7334 6 жыл бұрын
Nice vs code theme! can you make a tutorial on how to use vs code with unity?
@MoonKnight11
@MoonKnight11 6 жыл бұрын
Great Vid!
@あれくす
@あれくす 5 жыл бұрын
thank u
@hellokashif3526
@hellokashif3526 6 жыл бұрын
Nice. Btw is it necessary to set shadow sprite = caster.sprite on every LateUpdate? I think just once at Start would be enough. Right?
@pavelastraukh9905
@pavelastraukh9905 6 жыл бұрын
I think, that it is needed for animation. Otherwise your shadow will always stay the same.
@skagenmacka_t3444
@skagenmacka_t3444 6 жыл бұрын
When I instantiate a object with the SpriteShadow script on it, it creates two shadows... Anyone know a solution?
@skagenmacka_t3444
@skagenmacka_t3444 6 жыл бұрын
Nevermind, i was add a second shadow lol...
@dolaya237
@dolaya237 6 жыл бұрын
I have solution!
@chickpeas100
@chickpeas100 5 жыл бұрын
pog
@jprice_
@jprice_ 6 жыл бұрын
gucioboi bruh you need to put out some more stuff if you want that patreon money :D
@slynizz1014
@slynizz1014 6 жыл бұрын
fuanshin that's what I was thinking
@OceleDecbTV
@OceleDecbTV 6 жыл бұрын
Hey can you show have make fake 3d builds like in GTA2
@haxtrad
@haxtrad 6 жыл бұрын
It's not working for me, The script. Can someone give me a copy-paste of it?
@selviam2130
@selviam2130 6 жыл бұрын
if we do that you wont learn how to do it yourself
@XKCDism
@XKCDism 7 жыл бұрын
I love you
@feliperafael8104
@feliperafael8104 6 жыл бұрын
do this impact performance?
@SodexGames
@SodexGames 6 жыл бұрын
Well, each object will have a clone of it's sprite sat underneath it. This is probably more heavy than writing a shader just to do this, but this way is more simple
@JoenneGee
@JoenneGee 7 жыл бұрын
whalecum back mr skeletal
@RaphaelSMU
@RaphaelSMU 7 жыл бұрын
Great vid! Answer on Twitter dm's man
@GucioDevs
@GucioDevs 7 жыл бұрын
+Raphael .S thanks :) I'll answer when I get some time.
Unity Tip - VERY USEFUL MinMax Range Slider Attribute
4:15
GucioDevs
Рет қаралды 22 М.
I Wish I Had Known This Before I Started Unity Game Development...
11:11
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 42 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 27 МЛН
Real-time 2D shadows with WebGL
11:57
Jordan West
Рет қаралды 13 М.
Realistic 2D Lights & Shadows in Unity
11:28
Willy Dev
Рет қаралды 57 М.
Realtime 2D Shadows in Unity 3D (HDRP/URP Shadergraph)
5:34
SonnyMakesGames
Рет қаралды 20 М.
How To Make A Game Alone
8:11
Thomas Brush
Рет қаралды 1,1 МЛН
I Made a Graphics Engine in Scratch
8:27
Zyger
Рет қаралды 153 М.
My game is 262,000 times faster than Minecraft. I'll show you how.
12:20
IGoByLotsOfNames
Рет қаралды 1 МЛН
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 705 М.