Celeste's Camera Follow - Unity Cinemachine Tutorial

แชร์
ฝัง

ความคิดเห็น • 148

  • @BenBonk
    @BenBonk  4 ปีที่แล้ว +17

    @Terry Field, for some reason TH-cam wont let me reply to your comment. I would make sure you added the Player tag to your player and that it was spelled exactly the same way in your if statement and actual tag.

    • @noobdev6464
      @noobdev6464 ปีที่แล้ว

      Everything work good exept now it messed up my player controller i can spam the jump button and fly forever do u think u might know what the issue is ?

  • @iisklz_492
    @iisklz_492 5 ปีที่แล้ว +21

    I'm learning 2D Unity dev and camera was the first thing I encountered
    this camera effect is pretty epic (considering me as a celeste fan)

  • @jonathanhamstra3319
    @jonathanhamstra3319 4 ปีที่แล้ว +8

    I've spent 3 hours trying to figure out exactly this, thank you very much for a great tutorial!

  • @stevenhalliwell1229
    @stevenhalliwell1229 ปีที่แล้ว

    I know this is an old tutorial, but it is freakin' brilliant. You have shown me in 8 mins what I've been trying to get this blasted camera for ages to do :)
    Thank you soo much

    • @BenBonk
      @BenBonk  ปีที่แล้ว

      Thanks :)

  • @filipkuzmicz8127
    @filipkuzmicz8127 3 ปีที่แล้ว +2

    This is actual one of the moste useful toutorials in the whole Internet. This was a good idea to make, and really good made too.(: Hope u make good

  • @Bangheader
    @Bangheader 3 ปีที่แล้ว +11

    My camera is following in all directions until I exit the room collider, but I need to stop horizontal movement before the camera shows the next room. Any ideas?
    EDIT: It seems like the option "Confine Screen Edges" is gone in newer versions of cineMachine. Maybe that's the problem?
    SOLUTION: The option "Confine Screen Edges" is only available if the main camera is set to orthographic!

  • @signegolash4091
    @signegolash4091 4 ปีที่แล้ว +4

    Really good tutorial, exactly what I was looking for! Thanks!

  • @danielleary7876
    @danielleary7876 4 ปีที่แล้ว

    thx BenBonk - I struggled to find good info on how to implement this until i found this video; concise, simple, accurate. very much appreciated.

  • @TranquilKr
    @TranquilKr 3 ปีที่แล้ว +1

    Thanks for this tutorial man! I couldn't even google this thing properly, just couldn't find the right words. Anyway, I'm going to remember Cinemachine from now on

  • @Candles1996
    @Candles1996 3 ปีที่แล้ว +1

    For anyone having troubles with the Cinemachine camera not detecting the player at all, please remember to give your player a 2D box collider and a 2D rigid body :) Spent way too long trying to figure out why the camera was not working to for me to facepalm upon figuring this out.

  • @faceinthewall3636
    @faceinthewall3636 4 หลายเดือนก่อน +1

    Huge 👍 finally someone did a tutorial on this

  • @x364
    @x364 3 ปีที่แล้ว +2

    Extremely useful and works perfectly. Thank you very much!

  • @alexandrmotin2496
    @alexandrmotin2496 18 วันที่ผ่านมา

    Cool video! Easy and to the point, thanks.

  • @k1rzen
    @k1rzen 9 หลายเดือนก่อน

    thank you so much this is perfect, makes it so much easier for level design

  • @gamemacher87
    @gamemacher87 ปีที่แล้ว +1

    Thanks for the great video, got me rolling on how to implement. A maybe better way for numerous rooms is to create an OnTriggerEnter script for each area collider component and then reference the Cinemachine 2D Confiner to switch the collider being used when entering the room, in that way you would only need one cinemachine virtual camera in the scene and just the collider it focuses on is changing.

    • @unloadedmaster1176
      @unloadedmaster1176 7 หลายเดือนก่อน

      This sounds super helpful. Could you elaborate further on this? I am trying to recreate this, but I am currently struggling with it.

    • @gamemacher87
      @gamemacher87 7 หลายเดือนก่อน

      @@unloadedmaster1176 Hey! I used an ontrigger event and attach it to any of the polygon colliders around the room, I put a tag 'Confiner' on all of those gameobjects. You can reference the cinemachine confiner current collider and change it from code. The one thing you'll have to play with if you do this is maybe pushing the player fully into the room, because if you slowly go in the collider may not fully trigger and your player will disappear into the other collider. I do end up using an ontriggerstay2d and make sure player is fully in collider but this below should get you started, I put it on the player collider gameobject.
      Reference the Camera, in my case I just used a serialized field. Then create a confiner reference.
      [SerializeField] CinemachineVirtualCamera _virtualCamera;
      CinemachineConfiner2D _confiner;
      private void Awake()
      {

      _confiner = _virtualCamera.GetComponent();
      }
      private void OnTriggerEnter2D(Collider2D collision)
      {
      if(collision.tag=="Confiner")
      {
      _confiner.m_BoundingShape2D = collision.GetComponent();

      }
      }

  • @scoop9551
    @scoop9551 ปีที่แล้ว +1

    is there a way to do this with only one virtual camera ? i feel like creating bunch of cameras is not the best solution :/ like changing the bounds once the player enters another one

  • @SnowHornet580
    @SnowHornet580 4 หลายเดือนก่อน

    this movement is crazy! im using it in my commercial game!

  • @dark_j_gamer5285
    @dark_j_gamer5285 4 ปีที่แล้ว +1

    this was super useful and it saved my game

  • @otbox7997
    @otbox7997 3 ปีที่แล้ว

    thanks, i'm a beginner and your tutorial helped me. Your tutorial is excellent

  • @emerald9743
    @emerald9743 2 ปีที่แล้ว

    just what was i looking for!

  • @shiftpact6303
    @shiftpact6303 4 ปีที่แล้ว +7

    My camera keeps snapping instead of smoothly transitioning. Do you know the reason why?
    Edit : I fixed it. My room triggers were too far apart. Which is why the cameras were snapping.

    • @kovidkhokar298
      @kovidkhokar298 3 ปีที่แล้ว

      Thanks a lot i had the same issue

  • @OssyAndarii
    @OssyAndarii 4 ปีที่แล้ว

    Best tutorial for camera transitions thanks alot.

  • @LostRelicsOfficial
    @LostRelicsOfficial 4 ปีที่แล้ว +4

    There is a weird stuff that when i use a Ground Check it dont work after using the Tutorial and i dont know how to fix it..

    • @dark_j_gamer5285
      @dark_j_gamer5285 4 ปีที่แล้ว +2

      if your ground check uses raycasts make susre you set the layer of the rooms to ignore raycast

    • @fishbox385
      @fishbox385 4 ปีที่แล้ว +1

      @@dark_j_gamer5285 This was the exact same problem for me, thanks a ton man. I had this problem a couple of months ago and i had to quit a whole project because of it. Thank you

  • @MusicFilmKaoss12
    @MusicFilmKaoss12 4 ปีที่แล้ว +1

    Mega! Thanks dude, this really helped with a game I'm making.

  • @sadsadsad5000
    @sadsadsad5000 4 ปีที่แล้ว +4

    great tutorial!! is there a way to destroy the enemies when they are not in the active room?

    • @cmdrcamper9511
      @cmdrcamper9511 3 ปีที่แล้ว +1

      I'm sure you've figured it out by now but most likely what you wanna do is create a static script that handles that stuff. Have it run a destroy enemies function or something that is called whenever OnTriggerExit2D is called

    • @sadsadsad5000
      @sadsadsad5000 3 ปีที่แล้ว

      ​@@cmdrcamper9511 yeah thats exactly what i ended up doing lol its perfect for a metroidvania

  • @JujuProdGames
    @JujuProdGames 2 ปีที่แล้ว

    Awesome tutorial mate!❤

  • @crazyface2k
    @crazyface2k 4 ปีที่แล้ว

    Thank you very much for this tutorial, works like a charm. Keep up the good work!

  • @Djinn667
    @Djinn667 2 ปีที่แล้ว

    For a second, I thought MY one drive was full.

  • @LokhlassetSuperPigeon
    @LokhlassetSuperPigeon 2 ปีที่แล้ว

    Just an update of this video: there is another extension called "Cinemachine Confiner 2D" compared to this video. This is NOT this component used in this tutorial: the far better one is still "Cinemachine Confiner" (it might fit with the first one with some work, but small colliders will make it buggy)

  • @Garpzz
    @Garpzz 4 ปีที่แล้ว +3

    Hey i folowed the tutorial but the Confine Mode does not work for the Y axis , whenever i go up too far my camera just folow and go over the confine 2D. But it works well for X axis

    • @Garpzz
      @Garpzz 4 ปีที่แล้ว +2

      Ok fixed , my room was too small compared to my camera , room need to be bigger

  • @CreativeIsaiah
    @CreativeIsaiah 3 ปีที่แล้ว

    Some ppl make this so difficult lol thank you for making it simple

  • @Rioni
    @Rioni 4 ปีที่แล้ว

    Thanks for the tutorial, this gave me some ideas. I removed the confiner (as it's not really necessary for me, the script don't need the confiner) and I also added a script to make my box collider 2d match the camera frustrum. This idea has a lot of potential :D

  • @soulpatch.youtube
    @soulpatch.youtube 3 ปีที่แล้ว

    This video was huge for me, thanks

    • @BenBonk
      @BenBonk  3 ปีที่แล้ว

      Np, glad I could help.

  • @mozikr9694
    @mozikr9694 4 ปีที่แล้ว

    This is exactly what I'm looking for, thx

  • @MrCreepigleton
    @MrCreepigleton 3 ปีที่แล้ว

    6:27 is there a reason why we need the secondary condition ?

    • @Danee2108
      @Danee2108 3 ปีที่แล้ว

      It isn't necessary at all, but it's there so it can't be activated by other triggers.

  • @leadar4504
    @leadar4504 2 ปีที่แล้ว +1

    it worked for me as in the video, but when the player dies and restarts the area, the camera stays in room 2 (even though I didn't get there before I died) can someone help me?

    • @leadar4504
      @leadar4504 2 ปีที่แล้ว +1

      when the player dies im using this code to restart:
      private void RestartLevel()
      {
      SceneManager.LoadScene(SceneManager.GetActiveScene().name);
      }

  • @niewinskipiotr1993
    @niewinskipiotr1993 2 ปีที่แล้ว

    awesome tutorial, thank you

  • @arcticmango4792
    @arcticmango4792 3 ปีที่แล้ว

    Thanks, this video helped me a lot!

  • @exodusvr9543
    @exodusvr9543 3 ปีที่แล้ว +1

    Hi much thanks for the tutorial it works well :) is it possible to have the the player GameObject freeze/slow during the camera transitions?

    • @sovietslav7082
      @sovietslav7082 ปีที่แล้ว

      2 years too late but maybe make it set the move speed to 0, then put it back when you need it

  • @saltysaphir
    @saltysaphir 3 ปีที่แล้ว

    omg, thanks for the tutorial. It was so easy to understand and I'm going to use it for my school project but one thing. The scene becomes a little wobbly or idk at a certain point I have reached the conclusion that it moves when passing the blue lines. I'm still going to search on my own but your help is apreciated!

  • @x364
    @x364 3 ปีที่แล้ว

    Clever and useful! Thanks!

  • @rubenpereira4423
    @rubenpereira4423 3 ปีที่แล้ว

    Thanks man you really save my life !!

  • @LogicStudios_1
    @LogicStudios_1 ปีที่แล้ว +3

    If you don't want to have to drag in the CM vcam every time, just name all of your vcams the same thing (eg: "CM vcam1") and then in your script add this:
    void Start ()
    {
    virtualCam = transform.Find("CM vcam1").gameObject;
    }
    It will automatically find the child object so you don't have to drag it in every time.

  • @Beageal
    @Beageal 4 ปีที่แล้ว

    Perfect! Exactly what I needed to know, explained better than most Unity tutorials do. Thanks! Strange thing though, the virtual cameras do exactly what I want, but when they're active my player's jump controls completely change -- aircontrol is suddenly allowed, none of my floor/wall/ceiling checks happen. I don't get why the cameras would affect that at all...

    • @Nika-io4bz
      @Nika-io4bz 3 ปีที่แล้ว

      couldn´t it be affected by the polygon colliders? I have similar issue, where it basically forces my player into sneak mode

  • @ryosaeba6170
    @ryosaeba6170 4 ปีที่แล้ว +4

    Excellent i make a 2d game "Anatema" and your tricks saved the management of my ce
    Cameras !
    Thanks a lot :)

  • @maxmorrison9763
    @maxmorrison9763 2 ปีที่แล้ว

    Big man, very helpful

    • @BenBonk
      @BenBonk  2 ปีที่แล้ว

      Didn’t ask dawg

    • @maxmorrison9763
      @maxmorrison9763 2 ปีที่แล้ว

      can i get a lawyer dog

    • @BenBonk
      @BenBonk  2 ปีที่แล้ว

      @@maxmorrison9763 no

  • @hiimtatsugo7341
    @hiimtatsugo7341 ปีที่แล้ว

    Great tutorial thanks you

  • @Khud0
    @Khud0 3 ปีที่แล้ว

    Thanks, this was very helpful! :)

  • @lilvan1018
    @lilvan1018 2 ปีที่แล้ว

    seemslike i run into a problem, the transition wouldnt happen, both virtual cameras is disabled, and didnt SetActive, i dont know whats wrong, tho anything else is great, and no error message pop up

  • @syedatifali4041
    @syedatifali4041 2 ปีที่แล้ว

    when hitting "play" both the confiners is not detecting the player, plz help

  • @_raffi
    @_raffi 2 ปีที่แล้ว

    Is it possible after going into 2nd room that the camera dimensions change?

  • @pauliusvidziunas2858
    @pauliusvidziunas2858 4 ปีที่แล้ว +1

    I have a problem. Now when i press play, it always starts with second vcam where is nothing. I have to drag gameobject(player) to second room and then run to first one. It starts from second vcam, idk why.

    • @BenBonk
      @BenBonk  4 ปีที่แล้ว +1

      Maybe make sure both of your cameras are disabled in the hierarchy and double check your code. I would need more info if you are still having problems.

    • @progressive1335
      @progressive1335 4 ปีที่แล้ว

      BenBonk pretty interesting. Yesterday was doing new version of unity update and after update this camera transition didnt work. Today after Pc restart is working fine :D

    • @BenBonk
      @BenBonk  4 ปีที่แล้ว +1

      ProGressive Unity can be like that sometimes!

  • @limoncurd
    @limoncurd ปีที่แล้ว

    Reeeally useful tutorial, it works great. One question! How can I have my Player respawn at the beginning of the last virtual camera they entered? Like in Celeste you don't respawn at the beginning of the level, but at the last area you entered. Does anyone have any ideas?

    • @yannickgorissen4032
      @yannickgorissen4032 ปีที่แล้ว

      for now i just added a prefab called "respawnpoint" wherever the player switches rooms. The player has a private Transform lastCheckpoint and when dying, youll respawn there.

  • @NeutralStorms
    @NeutralStorms 4 ปีที่แล้ว

    I know you might not know the answer but I have been using the corgi engine asset and for some reason this doesn't work for me I'm assuming it's the asset but I just have no Idea what it could be from the asset causing this. Everything seems to work perfectly until I turn off both my Cameras and it dosen't turn them back on upon hitting play, I have double checked my code and it's exactly the same as yours.

  • @OrkhanJulfa
    @OrkhanJulfa 3 ปีที่แล้ว

    Thanks! good tutorial!

  • @GrantsNetwork
    @GrantsNetwork 4 ปีที่แล้ว

    I'm having an issue. I'm using a player with multiple colliders and to crouch I disable their top collider, but this calls the "OnTriggerExit2D" function as technically the collider that was disabled has left the polygon collider. This is causing the camera to disable while the player is still in-frame and then re-enabling it after I stop crouching, which causes a huge visible tug of the camera back to the polygon.

    • @SkyNick
      @SkyNick 4 ปีที่แล้ว

      did you fix it? :( it's happening with me too

  • @killuahsmathetricks389
    @killuahsmathetricks389 4 ปีที่แล้ว

    Hello, first of all amazing video!
    I am currently trying to programm a small Vine Swinging Game. The idea is pretty similar concerning the camera movement, since I generate my level sequentially. My only problem is now, that I dont know how to allow the camera so just "add" the new confinement zone to the already allowed one. Like I got 4 prefabs for levelparts, which are randomly linked to each other. And the camera should be able to go to the right, but not up/down or to the left. Is this somewhat possible? Until now I didnt really find a good manual/tutorial that tackles something with sequential generation =(

    • @tmsh_
      @tmsh_ 2 ปีที่แล้ว

      ayo man I know this was 2 years ago but I somehow found out how to fix that shit so I'm here to help anyway:
      what I found out is that when this was happening to me, it would always first go to the right (even tho i went left) and then it started working as supposed to.
      so I found out its a simple fix.
      just add:
      private void Start()
      {
      virtualCam.SetActive(false);
      }
      :)

    • @tmsh_
      @tmsh_ 2 ปีที่แล้ว

      i guess the vCam needs to start as false for it to work the first time

    • @killuahsmathetricks389
      @killuahsmathetricks389 2 ปีที่แล้ว +1

      @@tmsh_ oh wow, ich didnt expect to get an answer. I will try that. I moved on from that game, but thats nice. Thank you very much :D

    • @tmsh_
      @tmsh_ 2 ปีที่แล้ว

      My bad dude, sorry to wake you up from your 2 year slumber,but my fix is something different than what you needed help with. My problem was about being able to go right but when i went left, camera still went right, so if you'll have problem with that, THEN this can help you. Sorry dude

  • @nickstrife8312
    @nickstrife8312 4 ปีที่แล้ว

    This is amazing, thanks! I wanted to ask you if there's a way, after passing from Room1 to Room2, to not allow the character to go back to Room1.
    Thank you in advance!

    • @nagybalint1474
      @nagybalint1474 3 ปีที่แล้ว +1

      lmao place a box collider and after you get into room 2 untick Is Trigger

    • @shukhambalie3936
      @shukhambalie3936 3 ปีที่แล้ว +1

      Idk if you still need this, but you can make a something like a door and if the room 2 tigger is set to active, close the door

  • @radiance8940
    @radiance8940 10 หลายเดือนก่อน

    thank you, very much

  • @darkstorm4378
    @darkstorm4378 2 ปีที่แล้ว

    man, thank u so much

  • @monars9
    @monars9 ปีที่แล้ว

    amazing thanks

  • @owyn7983
    @owyn7983 3 ปีที่แล้ว

    The cam is not going active when clicking play, any possible fixes or reasons?

    • @mace.nam1
      @mace.nam1 3 ปีที่แล้ว +1

      Yeah I have this problem too

    • @haydenzegley
      @haydenzegley 2 ปีที่แล้ว

      having the same issue

    • @user-eh8tz4vm5f
      @user-eh8tz4vm5f 2 ปีที่แล้ว +1

      Check if the player object's tag is Player

    • @lilvan1018
      @lilvan1018 2 ปีที่แล้ว

      @@user-eh8tz4vm5f i did change that but i have the same probs

  • @WALDO329
    @WALDO329 ปีที่แล้ว

    Greate!!!, Tks so Much :DDD

  • @fernand4798
    @fernand4798 3 ปีที่แล้ว

    Thank you for this video you win a like

  • @richdev4077
    @richdev4077 4 ปีที่แล้ว

    I have a problem, I disabled both camera in hierarchy but when the game starts it doesn't enable the camera....
    Can you help me?
    I made sure that the tag was player and both of the camera are disabled in the hiearchy.
    Edit: This is my script:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class RoomManager : MonoBehaviour
    {
    public GameObject virtualCamera;

    private void OnTriggerEnter2d(Collider2D other){
    if(other.CompareTag("Player") && !other.isTrigger){
    virtualCamera.SetActive(true);
    }
    }

    private void OnTriggerExit2D(Collider2D other){
    if(other.CompareTag("Player") && !other.isTrigger){
    virtualCamera.SetActive(false);

    }
    }
    }

    • @richdev4077
      @richdev4077 4 ปีที่แล้ว

      If you need more information can you give me your discord or something so I can send you pictures?

    • @BenBonk
      @BenBonk  4 ปีที่แล้ว

      Capitalize the D in ontrigger enter

    • @richdev4077
      @richdev4077 4 ปีที่แล้ว +1

      @@BenBonk Thanks xD, idk how I didn't notic that. Thank you very much for the reply, everything works great now!

  • @ludvigstorm3972
    @ludvigstorm3972 3 ปีที่แล้ว

    hello i tried using this video to make a platformer type game. but when i try to put the sctipt in the rooms it says "Can't add script component'room' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match." pls help

    • @BenBonk
      @BenBonk  3 ปีที่แล้ว

      Make sure the script in unity has the same name of the class in the script.

    • @ludvigstorm3972
      @ludvigstorm3972 3 ปีที่แล้ว

      @@BenBonk ty it worked. thanks for the answer so fast

    • @BenBonk
      @BenBonk  3 ปีที่แล้ว

      np

    • @ludvigstorm3972
      @ludvigstorm3972 3 ปีที่แล้ว

      @@BenBonk now i have a new problem. ok i kinda broke my game so that i had to start on a new. but now i can't get the camera to change
      between the to rooms. i can see that it enables in room 2 when i go there. but the camera doesn't change. sorry for all the questions i am asking.

  • @iisklz_492
    @iisklz_492 5 ปีที่แล้ว

    truly epic

  • @CXLP
    @CXLP 2 ปีที่แล้ว

    Life saver !

  • @bmo_0143
    @bmo_0143 3 ปีที่แล้ว

    Do you guys know why my cinemachine dont appear on top like in the video? i only get a folder in my asset. If someone could help

    • @abraao666
      @abraao666 4 หลายเดือนก่อน

      With the newer versions, Cinemachine no longer appears in the main menu. You’ll find it in the GameObject menu, or if you right-click on the hierarchy.

  • @xi3zhi
    @xi3zhi 9 หลายเดือนก่อน

    THANK YOUU BRO🙏

  • @ShadowPianoProductions
    @ShadowPianoProductions 3 ปีที่แล้ว

    Wait, why can't you use a box collider?

  • @random_precision_software
    @random_precision_software 5 หลายเดือนก่อน

    Nice

  • @bartoszkrzeminski9099
    @bartoszkrzeminski9099 4 ปีที่แล้ว

    Very epic, but one thing, if you maximize camera it breaks apart

  • @BigWllyTM
    @BigWllyTM 3 ปีที่แล้ว

    my camera doesnt stay in place it continues to follow the player

    • @BigWllyTM
      @BigWllyTM 3 ปีที่แล้ว

      fixed it my main camera was in perspective mode instead of ortographic

  • @barbarosking3694
    @barbarosking3694 2 ปีที่แล้ว

    Nice Video :)

  • @nickolasmachado9274
    @nickolasmachado9274 4 หลายเดือนก่อน

    Thank you

  • @evryon1810
    @evryon1810 2 ปีที่แล้ว

    TYSM BRO

  • @ni-keybomboclat
    @ni-keybomboclat 3 ปีที่แล้ว +1

    the script for people that are lazy:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class cam : MonoBehaviour
    {
    public GameObject virtualCamera;

    private void OnTriggerEnter2D(Collider2D other){
    if(other.CompareTag("Player") && !other.isTrigger){
    virtualCamera.SetActive(true);
    }
    }

    private void OnTriggerExit2D(Collider2D other){
    if(other.CompareTag("Player") && !other.isTrigger){
    virtualCamera.SetActive(false);

    }
    }
    }

  • @ИмранИсен-ф7и
    @ИмранИсен-ф7и 4 ปีที่แล้ว

    Hi, I am a Kazakh who speaks Russian, so don’t be afraid of crooked English. So I have a problem. When I jump and move between rooms, the camera jumps, but not very noticeably. But for me it hurts my eyes, how can I fix it?

    • @ИмранИсен-ф7и
      @ИмранИсен-ф7и 4 ปีที่แล้ว

      By the way, I am grateful for such a lesson, I could not find a similar one anywhere, and you are here :)

    • @BenBonk
      @BenBonk  4 ปีที่แล้ว

      Make sure your polygon collider is the exact same size as your camera

    • @ИмранИсен-ф7и
      @ИмранИсен-ф7и 4 ปีที่แล้ว

      @@BenBonk Wow you quickly. Okay, thank you, I will consider

    • @ИмранИсен-ф7и
      @ИмранИсен-ф7и 4 ปีที่แล้ว

      @@BenBonk Checked, now works. Thank you so much. Now I have a new problem, it is more picky, but still. When I go from left to right of the camera and vice versa, it moves a few centimeters. This is the default camera Unity. How to fix it?

    • @ИмранИсен-ф7и
      @ИмранИсен-ф7и 4 ปีที่แล้ว

      @@BenBonk or continue this camera. Sorry for so many questions

  • @bigiousboious8152
    @bigiousboious8152 3 ปีที่แล้ว

    ur voice is nice

  • @harsht4345
    @harsht4345 4 ปีที่แล้ว

    made the like button blue ;)

  • @oleksandrshvets
    @oleksandrshvets 5 ปีที่แล้ว

    Cool! But how to do this with Corgi Engine? Everything is done according to the instructions, but something does not work out. Room colliders do not respond to the character.

    • @JakeMakesGames
      @JakeMakesGames ปีที่แล้ว

      ive used corgi engine before,, have a look at the documentation for "cinemachine zones", its exactly what this video does but within the corgi engine framework

  • @kristijanboshev2625
    @kristijanboshev2625 4 ปีที่แล้ว

    God bless your soul

  • @Piyush-x3s
    @Piyush-x3s 4 ปีที่แล้ว

    Thanks!

  • @komiro100
    @komiro100 4 ปีที่แล้ว

    thank you !!!!!

  • @bodybody5609
    @bodybody5609 3 ปีที่แล้ว

    that's cool

  • @Nika-io4bz
    @Nika-io4bz 3 ปีที่แล้ว

    Hello. Im having an issue with the polygon colliders, I believe it forces my player into crouch mode constantly, as the jump height isnt affected and the would-be regural speed is matching my crouch speed. I used movement from this video: th-cam.com/video/dwcT-Dch0bA/w-d-xo.html&ab_channel=Brackeys Please if someone found a fix for this, lemme know, Im newbie in gamedev

    • @toastyshrimp1882
      @toastyshrimp1882 3 ปีที่แล้ว

      make sure the polygon collider is set to IsTrigger

  • @AlexsYTChannel1
    @AlexsYTChannel1 2 ปีที่แล้ว

    thx!

  • @neinnein805
    @neinnein805 4 ปีที่แล้ว

    cool

  • @HamCUHC
    @HamCUHC 5 ปีที่แล้ว

    epic

  • @marjansek8977
    @marjansek8977 4 ปีที่แล้ว

    Is there a way to make this in 3d???

  • @Zer0-Day
    @Zer0-Day 4 ปีที่แล้ว

    thx

  • @simpledeck5133
    @simpledeck5133 2 ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Room : MonoBehaviour
    {
    public GameObject virtualCam;
    private void OnTriggerEnter2D(Collider2D other)
    {
    if(other.CompareTag ("Player") && !other.isTrigger)
    {
    virtualCam.SetActive (true);
    }
    }
    private void OnTriggerExit2D(Collider2D other)
    if (other.CompareTag ("Player") && !other.isTrigger)
    {
    virtualCam.SetActive (false);
    }
    }

  • @darkfrei2
    @darkfrei2 3 ปีที่แล้ว

    How to make it without Unity?

  • @tomas4681
    @tomas4681 3 ปีที่แล้ว

    Thanks!