CAMERA SHAKE in Unity

Поделиться
HTML-код
  • Опубликовано: 17 дек 2024

Комментарии • 615

  • @UnidayStudio
    @UnidayStudio 6 лет назад +459

    8:49 best sound effect ever

    • @youngtozen4168
      @youngtozen4168 6 лет назад +5

      fart?

    • @VeNoM0619
      @VeNoM0619 6 лет назад +18

      I was not prepared for that, and bust out laughing. That was just genuine comedy.

    • @guldberg75
      @guldberg75 6 лет назад +2

      Hahaha, i was expecting a cool effect for real..

    • @Necronomicron8
      @Necronomicron8 6 лет назад +1

      Where can I buy this asset? :D

    • @davidberger5745
      @davidberger5745 6 лет назад

      Uniday Studio nn

  • @creator_2013
    @creator_2013 6 лет назад +2021

    *How to become a good Unity developer:*
    Step 1 - Programm everything yourself
    Step 2 - Just delete your code and use something from the asset store

    • @elektra81516
      @elektra81516 6 лет назад +299

      As much of a joke that this is, programming things yourself gives you more flexability and control as well as a sense of pride and acomplishment

    • @theycallmemrglass
      @theycallmemrglass 6 лет назад +7

      lol

    • @supatroopa5097
      @supatroopa5097 6 лет назад +19

      too real

    • @gamedesignwithmichael
      @gamedesignwithmichael 6 лет назад +7

      "good" haha

    • @hahahpizza
      @hahahpizza 6 лет назад +6

      He gave us both the options bitch.

  • @Natalatalei
    @Natalatalei 6 лет назад +318

    Can we get a tutorial on how to do that sound effect you used at the end, seems advanced.

    • @-no9039
      @-no9039 4 года назад +3

      yes i hope he do a tutorial

    • @zlayer2881
      @zlayer2881 4 года назад +1

      @@-no9039 lmao

    • @-no9039
      @-no9039 4 года назад +1

      @@zlayer2881 sorry i don't understand

    • @pinnerplay5435
      @pinnerplay5435 4 года назад +1

      I think you may just download an effect and to play it on click you may make a script in c#

    • @Pickygamingz
      @Pickygamingz 4 года назад +1

      @@-no9039 the end sound was spit lola

  • @leyamst
    @leyamst 6 лет назад +235

    I was literally scripting my guns in my game and this video gets uploaded right when I needed it.

  • @Lugmillord
    @Lugmillord 6 лет назад +53

    Recommendation: Instead of Random.Range, try some noise functions. They make the shake less erratic and a bit more realistic. There's a great GDC video about that.

  • @smokinjoeee
    @smokinjoeee 6 лет назад +55

    pro tip: at the beginning of every Brackeys video, freeze it; you'll get a pretty good look at what he looks like high

    • @chrisc7265
      @chrisc7265 6 лет назад +5

      the real challenge is trying to figure out what he looks like not high

  • @heatblayze
    @heatblayze 6 лет назад +213

    I already know 99% of the stuff you publish, but for some reason I just love watching your videos

    • @Rambolink94
      @Rambolink94 6 лет назад

      Same here!

    • @philliptemidayo
      @philliptemidayo 6 лет назад +6

      I also know most of it, but sometimes, his videos give me a better and easier way to optimize my codes. No knowledge is lost ;)

    • @albarnie1168
      @albarnie1168 6 лет назад

      Same!

    • @limageur
      @limageur 5 лет назад +1

      Where have you learn ?

    • @needful3961
      @needful3961 4 года назад +1

      Me neither

  • @guldberg75
    @guldberg75 6 лет назад +1

    I like that you show both how to start writing your own shake, and then also shows a good assets - but unlike most you also import the asset and shows how to actually use it.

  • @Dorbellprod
    @Dorbellprod 4 года назад +332

    "Go back into unity, there should be no errors"
    My Console: ❗️❗️❗️❗️❗️❗️❗️
    As of October 2, 2021, I officially no longer like this comment.

    • @2016hondacrv
      @2016hondacrv 4 года назад +2

      Same :D I did a typo though :)

    • @raiqaariz4711
      @raiqaariz4711 4 года назад

      169

    • @raiqaariz4711
      @raiqaariz4711 4 года назад

      HAHHAHA I RUINED IT DONT KILL ME

    • @user-nz4dr1sy5g
      @user-nz4dr1sy5g 4 года назад

      "; ;" its all it takes

    • @kivo3592
      @kivo3592 4 года назад

      can someone heweeeellllp my console wants to kill itself

  • @WyattLee
    @WyattLee 6 лет назад +12

    I just want to say thank you... You have helped me out in my programming experience, and I couldn't do any of it without your easy-to-learn explanations. I hope someday to be able to make games as good as you...

  • @ploopploop
    @ploopploop 4 года назад +5

    The fact that this is one of the only and few camera effects that don't get broken with HDRP deserves an extra comment after 2 years

  • @icades5157
    @icades5157 6 лет назад +5

    8:50 the best sound effect I've ever heard. Gotta download it.

  • @ipadize
    @ipadize 4 года назад +9

    when you made that soundeffect, i felt that

  • @sparrowhawk81
    @sparrowhawk81 6 лет назад +4

    DOTween is great for this kind of stuff. Even the free version has some really cool extensions for camera shake, punching out the scale of things to make them "pop". You can "tween" any value you want pretty easily too.

  • @stannisbarracuda5693
    @stannisbarracuda5693 6 лет назад +36

    me as a beginner programmer still watchin his class and arrays videos this looks like magic to me

    • @drowsy5384
      @drowsy5384 6 лет назад +4

      stannis Barracuda You really shouldn't be watching any of this without base desirably C based language knowledge

    • @Buggzys
      @Buggzys 6 лет назад +11

      Green Shadow dont listen to this guy, people all over say things like this but you learn so much from these types of videos that you can apply later on

    • @kaf3in0
      @kaf3in0 6 лет назад

      Yeah, totally, perhaps you don't learn quite as much as if you would understand basic stuff, but there is still something to learn here. It's cool to see what you could be able to do and get more familiar with the code syntax. However, it's not good either to just watch these videos if you don't understand the basics.

    • @Buggzys
      @Buggzys 6 лет назад +5

      Kaf3in0 B Yeah that is true, I sounded kind of rude responding to that other guy but you should never be discouraged to watch a video that you dont fully understand. Videos like these used to motivate me to learn and practice more to achieve this type of success.

    • @joshfry6868
      @joshfry6868 6 лет назад

      it'll grow on you. Keep learning.

  • @smartandfunny6140
    @smartandfunny6140 6 лет назад +34

    can i use your sound effect 8:50 for my game ?

  • @5fercho5
    @5fercho5 6 лет назад +19

    Brackeys: "Now we need some sound effects"
    Me: Wow! what a complete tutorial!!
    Brackeys: *Mouth sounds*

  • @sykoo
    @sykoo 6 лет назад +322

    Heeeeeeeey, I started *shaking* because of that pun! Am I part of the joke-class now? 👏

  • @omarbdrn
    @omarbdrn 6 лет назад

    I love you. I'm an Egyptian programmer . I learned many at unity because of you

  • @kirov_airship
    @kirov_airship 4 года назад +5

    3:18
    Another way to avoid camera snapping instead of adding an empty game object in the Main camera:
    Simply change transform.localPosition = new Vector3(x, y, originalPos.z);
    to transform.localPosition += new Vector3(x, y, originalPos.z);

  • @felixp535
    @felixp535 6 лет назад +55

    Where can I download that amazing sound effect at the end? Link please

  • @abbymeister2188
    @abbymeister2188 3 года назад +1

    Me: trying to relax listening to the sounds of the forest
    *puts on brackeys video instead

    • @yourfellowgamer487
      @yourfellowgamer487 3 года назад

      I have found this comment by sorting all of these comments by the Newest First. You have gotten yourself the award of, "The Newest Comment as of 7-24-2021"

    • @abbymeister2188
      @abbymeister2188 3 года назад

      @@yourfellowgamer487 Thank you, i guess.

  • @touhidrabbenyshafin8471
    @touhidrabbenyshafin8471 3 года назад

    The sound effect was awesome! 8:49

  • @drew6107
    @drew6107 5 лет назад +1

    btw the cute way to do this is to put the starting of the coroutine inside of a different function inside of your camera shake object, and just calling that function every time so you dont have to use weird different syntax.

  • @IrfuTuber
    @IrfuTuber 3 года назад +1

    And this is guys how the Quarantine started all because of my man Big Brack.

  • @MrDylanButton
    @MrDylanButton 3 года назад +1

    For anyone whose script is not working nowadays, this works for me
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CamShake : MonoBehaviour
    {
    public IEnumerator Shake(float duration, float magnitude)
    {
    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration)
    {
    float x =Random.Range(-1f, 1f) * magnitude;
    float y =Random.Range(-1f, 1f) * magnitude;
    transform.localPosition = new Vector2(originalPos.x + x, originalPos.y + y);
    elapsed += Time.deltaTime;
    yield return null;

    }
    transform.localPosition = originalPos;
    }
    }

    • @MrDylanButton
      @MrDylanButton 3 года назад

      @Sicko no problem! Glad I could help

  • @NickFarrow
    @NickFarrow 5 лет назад +8

    If anyone is having an issue like me were the camera went a little too wild I've modified Brackeys script a bit.
    public IEnumerator Shake (float duration, float magnitude){

    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration) {
    float x = Random.Range(-1f,1f) * magnitude;
    float y = Random.Range(-1f,1f) * magnitude;
    float z = Random.Range(-1f,1f) * magnitude;
    //transform.localPosition = new Vector3 (x, y, z);
    transform.localPosition = new Vector3 (originalPos.x + x, originalPos.y + y, originalPos.z + z);
    elapsed += Time.deltaTime;
    yield return null;
    }
    transform.localPosition = originalPos;

  • @lens3973
    @lens3973 4 года назад +1

    Yo your sound effects are so good you should upload them on the Unity Store

  • @2dinunity10
    @2dinunity10 6 лет назад +2

    This is sweet and simple, and also really smooth (this goes under the camera game object)
    void OnPreRender(){
    if (sinceShakeTime > 0.0f) {
    lastPos = Random.insideUnitCircle * shakeIntensity;
    transform.localPosition = transform.localPosition + lastPos;
    void OnPostRender(){
    if (sinceShakeTime > 0.0f) {
    transform.localPosition = transform.localPosition - lastPos;
    sinceShakeTime -= Time.deltaTime;

  • @HiitsmeSsevasB
    @HiitsmeSsevasB 6 лет назад

    Oh man 8:49 im ready for that sound effects tutorial.
    Great tutorial, was looking for a camera shake one :D

  •  2 года назад +1

    I miss you, Brackeys ! I hope you and your team are doing well

  • @cooperfeld
    @cooperfeld 5 лет назад +1

    Agreed with keeping this self-programmed instead of using an asset, as it's just a few lines of understandable code. The asset only adds dependency to your project.
    Also since you have a 3D scene and perspective cam, you rather want to randomize camera.rotation than camera.position, because this will effectively pan the whole screen like a "flat image". Randomizing only the position pans objects close to camera much more than farther objects - unless you really want that effect.

  • @YoutubeChannel-oq6ss
    @YoutubeChannel-oq6ss 4 года назад +4

    Hello, if for some reason your code is not working, rewrite it like this... this works for me
    public class CameraShake : MonoBehaviour
    {
    // Set up data
    bool shake = false;
    float duration;
    float magnitude;
    Vector3 originalPos;
    float elapsed;
    // Shake the screen
    public IEnumerator Shake (float duration, float magnitude)
    {
    // Setup data for camera to be shaked
    shake = true;
    this.duration = duration;
    this.magnitude = magnitude;
    yield return 0;
    }
    void Update()
    {
    // Shake the camera
    if (shake)
    {
    if (elapsed == 0.0f)
    {
    Vector3 originalPos = transform.localPosition; // Save the original position
    }
    // Every frame, offset the camera's x and y position for duration seconds for duration seconds
    if (elapsed < duration)
    {
    float x = Random.Range(-1, 1f) * magnitude;
    float y = Random.Range(-1, 1f) * magnitude;
    transform.localPosition = new Vector3(x, y, originalPos.z);
    elapsed += Time.deltaTime;
    }
    else // Reset data
    {
    transform.localPosition = Vector3.zero;
    shake = false;
    elapsed = 0.0f;
    }
    }
    }
    }

  • @Phoenix-0455
    @Phoenix-0455 4 года назад +9

    It appears that the package EZ Camera Shake is not in the asset store anymore.

    • @keanu_reeves
      @keanu_reeves 4 года назад +1

      Look in the description, there is a GitHub Link to it

  • @dutch8700
    @dutch8700 6 лет назад +2

    Please do a tutorial where you give us a project that you made but there are a few problems and you have to go fix them.
    Thanks in advance dude
    Also congrats on 400k subs

  • @jhrch4389
    @jhrch4389 6 лет назад

    I can’t explain how much you helped me out

  • @bl4ckscor3
    @bl4ckscor3 6 лет назад +3

    That sound effect had me laughing for a bit :D

  • @pablovm4073
    @pablovm4073 6 лет назад +18

    I only give you a like because of that awesome Sound Effect :)

  • @LunaMakesGames
    @LunaMakesGames 6 лет назад

    The thumbnail is a Besiege screenshot xD (good job DAN)

  • @androvictrayo-dy7eh
    @androvictrayo-dy7eh Год назад

    This is a very epic tutorial, now I can create camera shake easily 👍👍👍

  • @luzmarazul
    @luzmarazul 5 лет назад

    8:50 SFX Approved by the best Minecraft Slime in the world

  • @Mr.Coldfire421
    @Mr.Coldfire421 6 лет назад

    The very awesome part you did is the sound effects. I didn't see that coming.

  • @docill9155
    @docill9155 6 лет назад

    Another tool worth looking at, if you want more control over your camera shake, is Perlin noise. I highly suggest any budding developer to look up camera shaking with Perlin noise, as it has many other applications (procedural world generation, drunken walking, etc).

  • @abdoudjam6846
    @abdoudjam6846 6 лет назад

    That final sound effect Lol ! you're getting better at telling jokes ,,, Thanks man you and your team are awesome !

  • @joshfry6868
    @joshfry6868 6 лет назад

    Dude nice! This is one of the first times I've seen a practical use of a coroutine. I'm sure there are tons though. Thanks!

  • @USNTM2
    @USNTM2 6 лет назад +1

    8:52 "PPPPFFFFFFF!" Loved the sound effect!

  • @clarencebustillo2182
    @clarencebustillo2182 6 лет назад +1

    Your thumbmail looks like the game Besiege!

    • @RupeeRhod
      @RupeeRhod 3 года назад

      That's because it's literally a screenshot from the trailer.

  • @skrypt2664
    @skrypt2664 6 лет назад +1

    Haha, that sound effect made my day! :D

  • @whywhywhy001
    @whywhywhy001 6 лет назад

    The EZ CameraShake is awesome! Thanks for the video.

  • @appleseedgames6934
    @appleseedgames6934 5 лет назад +3

    The asset store camera shake is fine IF you don't ever reset your scene because it fucks the camera

  • @hughmarch5909
    @hughmarch5909 6 лет назад +2

    Hey Brackeys, instead of parenting the camera, you could also set the local position to new Vector3(x + OriginalPos.x, y + OriginalPos.y, OriginalPos.z)

    • @theteeppi
      @theteeppi 7 месяцев назад

      Bruh, thank you so much, that saved me such a hassle. comment was 6 years ago, but still helping out here xd

  • @Oxmond
    @Oxmond 4 года назад +1

    Awesome camera shake tutorial! 👍🤓🧡

  • @ThylineTheGay
    @ThylineTheGay 4 года назад +3

    0:46 every mobile game "dev" be like: "yes i need that tutorial, no not the game development part, the ad part"

  • @turbomixer17
    @turbomixer17 3 года назад +1

    For those who are struggleing to implement this while camera moves:
    Dont save cameras original position, and instead just return to vector3.zero. That is if your camera is a child to some empty gameobject, and you have camera movement scr on that empty.

    • @GameDevJosh
      @GameDevJosh 3 года назад +1

      Thank you

    • @turbomixer17
      @turbomixer17 3 года назад

      @@GameDevJosh No problem m8

    • @turbomixer17
      @turbomixer17 3 года назад

      @Sicko
      Put camera inside an emptyObject
      If you have cameraScript (Responsible for moving camera) make it so this script moves that emptyObject
      Then if camera shakes it is inside an empty and you dont have to worry about position change
      hope that was clear :)
      if not I may do some quick tutorial on my channel

  • @juts89
    @juts89 6 лет назад

    sweet with this plus your menu videos I can make a menu to disable camera shake. That's my favorite setting.

  • @tyelork
    @tyelork 6 лет назад

    5/5 on the explosion sound at the end! I'm going to use that for explosions in my game now! "Pbfffff"!! Great video like always Brackey's!!

  • @nanoengine6577
    @nanoengine6577 6 лет назад

    Using Random.insideUnitCircle (returns Vector2 with a random x and y with the value from 0 to 1) instead of getting random value for both x and y is simpler in this case.
    So simply:
    Vector2 shake = Random.insideUnitCircle * magnitude;
    transform.localPosition = new Vector3(shake.x, shake.y, originalPos.z);

  • @rohitchalak6379
    @rohitchalak6379 4 года назад +1

    I am making a 2d game and want to use this but whenever it shakes the position of camera gets all messed up. How do I fix this?

  • @LunxriTV
    @LunxriTV 4 года назад

    That sound affect doe. seems really advanced

  • @eriknastesjo843
    @eriknastesjo843 4 года назад +1

    Camera Shaker script prevents me from zooming (changing z-value in camera position). Weird thing is that I can't access and disable the script by FindObjectOfType or by make it a public variable in the inspector. It's just not there. Anyone knows a solution?

  • @honeybee6978
    @honeybee6978 4 года назад

    Thanks for the tutorial. All of your tutorials help me a lot!

  • @DownKost
    @DownKost 6 лет назад +2

    Whats the asset name of that sound effect at 8:49?

  • @Henrix1998
    @Henrix1998 6 лет назад

    If you are into math, you could try making the shake yourself using cos(f*t)*k^-t as a base. k marks how fast the shake will fade out and f frequency

  • @toddchavez5374
    @toddchavez5374 6 лет назад

    That's what I needed, thanks Brackeys!

  • @koferperk
    @koferperk 3 года назад

    this video helped me with an unrelated cause lol, nice vid!

  • @mahanfarahani698
    @mahanfarahani698 4 года назад +1

    i have a question
    when we use cinemachine our player(or character) bound to camera and when we use these code, our camera dont shake. how could i fix it.please help me

  • @nickpapadimas9703
    @nickpapadimas9703 4 года назад +1

    I applied this effect when a ball touches a wall in a 2D project and after the camera shake effect the ball does no longer collide with the wall and can pass right through it. Any idea how to fix?

    • @tssper3488
      @tssper3488 4 года назад

      If the rigidbody isn't already set, change the 'collision detection' from discrete to any 'continuous', this will mean it will always be looking for colliders every frame unlike discrete. If you've already done this then i don't what else to tell u :(

    • @nickpapadimas9703
      @nickpapadimas9703 4 года назад

      @@tssper3488 Thanks for the response! I have already tried that but still the same :(

  • @Mongolbaawar
    @Mongolbaawar 6 лет назад +1

    i wish you were my friend. I would rather learn from you everyday

  • @YimboSlyce
    @YimboSlyce 6 лет назад +1

    when i apply the camera shaker to my 2D camera it makes it so i cant see anything other than the skybox please help?

  • @MrMakosi
    @MrMakosi 6 лет назад +2

    So i followed the tutorials and created the example cube game and it works great! I have now added camera shake at point of collision and it also works great however when a level restarts the camera does not follow player anymore.Anyone has similar problem and found out a solution?

  • @TrentSterling
    @TrentSterling 6 лет назад +4

    This camera shake varies depending on your frame rate, and you can only call it once at a time. Guess the asset'll do the job. :-\

    • @herisashehu972
      @herisashehu972 3 года назад

      he multiplied it with Time.deltaTime , so no it doesnt depend on your framerate.

  • @valeriaochoa9391
    @valeriaochoa9391 6 лет назад

    I suscribed in the moment that i heard that amazing sound effect

  • @Jaylaud
    @Jaylaud 6 лет назад

    I was wondering wont you get a smoother shake if you lerp the camera position to the empty position with a small damp time. And maybe change the empty position every other frame? I think I'll try it out and see

  • @SaadTahirVelocity7
    @SaadTahirVelocity7 6 лет назад

    You can also use DoTween camera shake. That's the same thing but more comes with it.

  • @WowleraTV
    @WowleraTV 4 года назад

    Hi! I have a trouble with this shake effect. I need it for my 2D game. I have camera and canvas with background and characters. I set Canvas Render Mode to Screen Space - Camera and applied this code. It works on the Scene screen, i can see correct shake effect but on the Game screen nothing happens. What shall i do, help me pls?

  • @ahsanashraf5723
    @ahsanashraf5723 6 лет назад +1

    Hey Brackeys! I'm continuously moving my camera along positive Y direction in a 2D game. And when player hits something i shake my camera in the way you have shown in this video via EZCameraShaker but the problem is when it shakes my camera it sets camera's position to the position when my game was started. I don't want that, the camera should stay at the point when the shake was started. How to do that? What i'm doing wrong here?

    • @CandorZofain
      @CandorZofain 6 лет назад +1

      Have the camera as a child of an empty object as shown in the video. The empty object's position should remain (0, 0, 0) except during the shake. So move the camera like you normally do, not the parent object, but have the shake script move the empty object.

  • @janimations4652
    @janimations4652 2 года назад +3

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CameraShake : MonoBehaviour
    {
    public IEnumerator Shake (float duration, float magnitude)
    {
    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration)
    {
    float x = Random.Range(-1f, 1f) * magnitude;
    float y = Random.Range(-1f, 1f) * magnitude;
    transform.localPosition = new Vector3(x, y, originalPos.z);
    elapsed += Time.deltaTime;
    yield return null;
    }
    transform.localPosition = originalPos;
    }
    }

  • @AnthonyFassolas
    @AnthonyFassolas 6 лет назад

    THe public CameraShake cameraShake; gives an error 'the type could not be found ' ? I am trying to use this together with your Grenade script from another video to call the shake from that script when the grenade that has been thrown explodes

  • @EinerMuss
    @EinerMuss 5 лет назад +11

    Asset Store Page of EZ Camera Shake: "Unfortunately, EZ Camera Shake is no longer available.
    This package has been deprecated from the Asset Store. "

    • @tong5622
      @tong5622 5 лет назад +6

      It is open-sourcing on GitHub though ;)

    • @paininmydroid4526
      @paininmydroid4526 4 года назад +4

      Yes, It's open sourced and here is the link github.com/andersonaddo/EZ-Camera-Shake-Unity

  • @SuperNecroticOH
    @SuperNecroticOH 2 года назад

    he is always smiling!

  • @trietvonguyenminh2613
    @trietvonguyenminh2613 6 лет назад

    How do I make the camera move by Vector3.Lerp(previousWaypoint, currentWaypoint, movePercent)
    And make an animation curve that makes the magnitude of the shake evaluates over the completion percent using shakeCurveModifier.Evaluate(completionPercent) ?

  • @lostandfound2893
    @lostandfound2893 2 года назад

    This is awesome, but is there any way to smooth out the movement? The shake and snap back to the original position are very harsh at the moment

  • @joppemin
    @joppemin 4 года назад

    bold of you to use a while loop in unity

  • @SerrOleg
    @SerrOleg 6 лет назад

    Would this work if my camera is set to follow a target around via script? I'm assuming since it takes a start position and resets it to that start position after the shake is done then it would not work for cameras which are moving via script?

  • @aa-ly9on
    @aa-ly9on 6 лет назад +3

    Why multiply rand(-1, 1) and not just rand(-magnitude, magnitude)? Just curious.

    • @darksecret6050
      @darksecret6050 4 года назад +1

      Then we don't need to reference the magnitude variable twice, I guess

  • @alexfish7792
    @alexfish7792 6 лет назад

    Great video. I found one problem. Multiple calls to the shake coroutine before it finishes will set originalPos to the current offset position during the interruption (You'll see this when quickly starting the coroutine over and over again before it finishes). You can fix this by setting the originalPos one time outside as a private field or simply ending each shake with Vector3.zero.

  • @fumeque10
    @fumeque10 4 года назад

    Hi, I wanted to know if this effect can be created with a cinemachine camera.
    Thank you very much, and very good video.

  • @AngryMedic
    @AngryMedic 6 лет назад +2

    Hey brackeys!
    Can you show us how to make the progressive lightmapper more “better and improved”?

  • @the85617
    @the85617 4 года назад

    You did a good job, really really thanks for providing such an amazing tutorial.

  • @jayantbarthwal4470
    @jayantbarthwal4470 6 лет назад

    i have applied your camera follow the player script of another video ,and with that script this camera shake is not working,what should i do.

  • @julias9041
    @julias9041 3 года назад

    Hi! For some reason my camera moves slightly to the left and doesn't return to originalPos... why might that be?

  • @cabbage1317
    @cabbage1317 6 лет назад

    How could I add the bombs / grenade tutorial to this? So like when your in range of the explosion it shakes but when your not it dosent shake?

  • @isteyak78
    @isteyak78 Год назад

    how he tries to cover up his jokes is 10x funny then any jokes🤣

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 6 лет назад

    Really need a tutorial on inAppPurchases. Unity IAP or Unity Ads or AdMob. I don't know how to set it up to monetize my game. Thanks Brackeys!!

  • @anandkrishna590
    @anandkrishna590 6 лет назад +2

    Dat sound effect dough

  • @bordel6121
    @bordel6121 4 года назад

    We're gonna miss you terribly.

  • @kairoday
    @kairoday 6 лет назад

    Brackeys, I was wondering, how do you make a capsule spin, like from your game: YourGame, but just in one direction?

  • @eeerrrrzzz
    @eeerrrrzzz 6 лет назад +1

    Nice tutorial as always but you can code like that instead of cameraholder;
    transform.localPosition = new Vector3(originalPosition.x + x, originalPosition.y + y, originalPosition.z);

  • @Tyrano840
    @Tyrano840 Год назад

    What I needed screen to shake on sprint
    What happened creating a camera holder caused sprint to malfunction
    camera holder caused controls to be swapped
    camera holder caused controls to flip depending on the direction the player is facing
    camera holder somehow caused a glitch where sprint couldn't be turned off so the player moved faster and faster until they started passing through solid objects.
    there were more but my question is
    How does an empty object cause so many problems?

  • @khvald
    @khvald 6 лет назад +40

    Rocket league has the best camera shake

    • @ketilhansen1060
      @ketilhansen1060 6 лет назад

      Khàléd HàllOuà totally agree

    • @TheAmbientWarrior
      @TheAmbientWarrior 6 лет назад +6

      That's because they eat their Wheaties and watch their Brackey's :P

    • @khvald
      @khvald 6 лет назад

      Ambient Relaxation lol :p

    • @ZAPANIMATIONS
      @ZAPANIMATIONS 5 лет назад +1

      Bro force