How to Code a Screen Shake Effect | Unity Tutorial

preview_player
Показать описание
This short video tutorial cover how to code a screen shake (or camera shake) effect in Unity using animation curves. This is a great effect for 2D and 3D games to add some juice.

In this tutorial we learn:
- How to run some code directly from the inspector
- How to use animation curves (AnimationCurve)

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

Short and clear, without writing unneccessary lines of code! That's how I like it!

jansmix
Автор

Thank you, NO plugins, NO assets, NO pre-made scripts!

taratraptaratrap
Автор

Hi! I recently started this channel, so I'm really interested in your feedback. Also it would be great if you could like and/or subscribe. Thanks for your help :)

thomas_friday
Автор

If the Camera is moving towards or following something, then the startPosition not being updated will cause the Camera to stop moving when shaking

Add startPosition = transform.position; to the While loop

The Camera will shake but continue moving towards whatever when shaking

michaeldiaz
Автор

The effect was simple to understand and easy to implement, just because of your great tutorial. Thanks!

yasinahmet
Автор

Your videos are amazinnnng! short and clear. please upload more content your channel deserve to be popular!

KaiketsuEgg
Автор

This is a super useful tutorial, short and on point. Thank you, you have a new subscriber!

francescodibuono
Автор

This tutorial was so good and easy to follow. Imma subscribe

jonathangarciarodriguez
Автор

Thank you this is an amazing tutorial. Concise, and no other bs

planktongunslinger
Автор

This tutorial was super helpful! Very nice of you! Thanks alot :D

zoroarts
Автор

Great video. Worked the first time! 🤩

mcleverm
Автор

FANTASTIC -TO THE POINT!!! keep going ! can wait next!!!!

dkordy
Автор

That was amazing tutorial it worked nice thank you <3

spiorus
Автор

A great video for a super useful feature

howl
Автор

This is the script i've benn looking for for months

dogetaylor
Автор

Would you please, in the same way as you do what you have done so far, you start a series about, say, the movement of the player (with a character controller) and other necessary things to start the player and his encounter with the environment, the enemy. I have a feeling that the way you do it would be perfectly presented and very easy for others to include in their projects. I really like the way you work.

dkordy
Автор

great code but i have a problem. my maincamera is following to my Player as a target and this shaking code cant work. What can i do?

guldestehazrlkb
Автор

I have an issue, the camera seems to freeze position. The camera should be following the player still. Also the start bool is stuck on and repeating. It won't disable when I tell it to in the coroutine I made. I want it to shake when the player takes damage.

BrandonNyman
Автор

hey, Thomas can you please make a video on Pistol recoil in FPS games? Would be really helpful.

rustyrishii
Автор

Hi, how to combine this method with camera following movement, I tried put Camera to the container but nothing helps, maybe someone already solve this?

nikitahlinsky
join shbcf.ru