Construct Quick Tip - Camera Zoom

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

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

  • @mason3872
    @mason3872 4 года назад +10

    What I like to do is set up a zoom variable and have an every tick set layout scale to lerp(Layoutscale, Zoom, 0.3) so whenever I need to zoom I just change the zoom value.

    • @lincolnsalles-
      @lincolnsalles- Год назад

      Yes, yes, you said it all. I have this system here in my project, but I started to see that I didn't understand very well how it works, and I always need to understand how the whole thing works. Now you've summed it up brilliantly.

  • @VinnimonCinnimon
    @VinnimonCinnimon 2 года назад +2

    Super duper amazing!!! It's little details like this that really bring in immersion. Thanks!!! Can't wait to implement

  • @nsjaime
    @nsjaime 4 года назад +11

    You can recreate the same effect with just one instance variable , one local variable and the lerp function

    • @Vimlark
      @Vimlark  4 года назад +6

      Nice. I use lerp for the camera movement. Never thought to use it for the zoom. Thanks!

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

      how to do it?
      can u give example?

  • @fduvkvgweep
    @fduvkvgweep 4 года назад +7

    just wondering if you are gonna host any community game jams any time soon?

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

      I am planning on it but nothing ready to share yet.

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

    Do you know of an easy way to make the UI scale with the camera? I haven’t dove into changing camera size much for my game but I don’t want to because the inventory always changes positions

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

      Just scale the UI proportionally with the zoom. Like if the zoom scale is 1.5 just set the scale of the ui to “CurrentScale*Zoom”
      Make sure to set a variable for your zoom so that you can have multiple values.

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

      @@mason3872 Or just scale the layer separetly, without scale the UI Layer.

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

      You should be able to set the UI layer scaling property to 0. Which will make it stay the same size even if you scale the layout.

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

      Vimlark oh shoot really? I’ll need to try that, thanks!

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

      late to the party but for anyone searching: Select your Layer then set Paralax to 0,0 and Scale Rate to 0. This keeps it in place.

  • @Big_Con
    @Big_Con 4 года назад +2

    We like to see it.

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

    Hey Vimlark i have a question, How To Make Squatch and stretch ? (in you're way)

    • @Vimlark
      @Vimlark  4 года назад +2

      I will make a quick tip on that soon :)

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

      @@Vimlark Cool, i made a method, but i am waitin for yours :) I like you so much, you are amazing dude🎇

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

    Dang, where was this during UGJ!

    • @Vimlark
      @Vimlark  4 года назад +2

      I know right? Every time I learn/figure out something new I just look at all the games I made without it.

  • @zodchiy3d
    @zodchiy3d 9 месяцев назад

    Thanks for tutorial. But why it doesn't work in Function?

  • @tobycat5799
    @tobycat5799 8 месяцев назад

    Ok. But can you scale the txt to the layout zoom?

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

    Love it!

  • @pasgames2537
    @pasgames2537 9 месяцев назад

    have code c3p?

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

    The zoom In works like charm (when it's higher than 1) but for some reasons when it perform a zoom out it's keep shaking when CurentZoom as reached the Target. Do you know why ?

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

    How do I make custom camera sizes tho?

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

    OMG THANK YOU SO MUCH! after tutorial to tutorial I finally found the worked one. Thank you!!!

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

    Hi my dear how are you! I have a doubt in this system there is a framerate error and this zoom ends up behaving differently on monitors with more hertz, I was told that it could be a lack of dt, can you explain how to do this? Thank you very much .

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

    Thank you! That's helpful!!!

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

    Yeah !

  • @aa.y1726
    @aa.y1726 6 месяцев назад

    ❤❤❤

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

    Noice

  • @tankgamez727
    @tankgamez727 4 года назад +2

    Oh wow early

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

      Derpy Potato2777 thanks for that info, ill be sure not to comment anything on any video again because apparently they cause significant harm to those who read it.

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

    Pizza

  • @Dreztes
    @Dreztes 4 года назад +2

    First

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

    Also do more mwg

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

      LEGO Crummy Cole Dude did you not see his most recent Mwg He talked about how he’s burnt out and doesn’t wanna do as much mwg please just be patient

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

      Taking a break at the moment but more will come. Thanks for your patience.

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

    E