Tip: if you want the gun to aim only when when holding down the button, use this instead: if (Input.GetButtonDown("Fire2")) { animator.SetBool("Scoped", true); } else if (Input.GetButtonUp("Fire2")) { animator.SetBool("Scoped", false); } Great video btw
@thecoolguy9364
4 жыл бұрын
I tried this and it very rapidly aims the unaims without even clicking fire2
@aleksp8768
4 жыл бұрын
@@thecoolguy9364 I'm sorry but it works for me
@adityasharma6579
4 жыл бұрын
@@thecoolguy9364 try removing the else if part and just type else.
@psycronos9662
4 жыл бұрын
Ty sir
@subzero4787
3 жыл бұрын
LOL
@panlis6243
7 жыл бұрын
Why doesn't this guy have more views? This stuff is awesome! :D
@grunf5604
7 жыл бұрын
Der Fuchs totally agree! he's the best
@SCHIJTERBAAS
7 жыл бұрын
because lot of young people that have lot of spare time are playing on the console. Dirty console peasent
@thomas_nl_
7 жыл бұрын
Der Fuchs he's awesome
@markhermens1174
7 жыл бұрын
that's because the population nowadays prefer brainless garbage over Quality like this.
@alejandrozamora3468
7 жыл бұрын
because not many people are developers
@VirtualTurtleGames
7 жыл бұрын
I love how you don't just learn how to make a scope function, but also so much more, if you chose to use these methods in different mechanics!
@bashirabdelwahed
7 жыл бұрын
this guy is probably the most professional guy on KZitem that uses unity really amazing thanks it really helps :D
@yagzefedemirel3934
7 жыл бұрын
ah good old days when me and my friend was trying to make a sniper scope. he just moved the camera further than the player model :D when i first saw it. WOW you done it! can i see the system? he showed the method he used and i was like hey put a wall in front of you. he putted opened the scope and saw through the wall. i said: well you made wallhacks congratulations :D
@beefedits5235
4 жыл бұрын
Teach me
@Orincaby
3 жыл бұрын
@@beefedits5235 putting a camera ahead of the player is bad.. You should use something to modify the FOV of the camera
@Daniel-vn6zr
3 жыл бұрын
sounds like a fun memory tbh
@727de
3 жыл бұрын
your friend isnt the brightest crayon in the box
@oliverb.8995
3 жыл бұрын
@@727de hes the darkest? and?
@altamkp
2 жыл бұрын
I wish Brackeys still makes tutorials, miss him on KZitem 😢
@vwx1st
Жыл бұрын
same
@ShrtCrct
10 ай бұрын
same
@Querxes
7 жыл бұрын
Brackeys, Your almost at 200 000Subscribers! Keep it up man, Your doing a great job with helping people create their dream games! My self included! Thanks!
@darrelmyer935
Жыл бұрын
This is an amazing scope for its price. Put it on my 22lr and works flawlessly. Also super easy to sight in.
@christopherjoy5226
5 жыл бұрын
Excellent tutorial! One comment I'd make is, rather than doing a CoRoutine to determine when to display the Scope Overlay, I would trigger it based upon the Scop animation trigger. Basically, once the Scope Animation is playing, we know the transition is complete, and we're ready to show the Overlay. My two cents.
@bmxchamp4
6 жыл бұрын
Just wanna take a second to thank you for all this great content.. I'm comin' back from a year long hiatus off of Unity, and starting with these intermediate tuts is a great way to both learn to implement new things quickly, as well as a refresher for all the updates Unity has made. Next stop after this is the advanced tuts to see what kinda juiciness you have over there.
@diliupg
2 жыл бұрын
October 2021 searched for Sniper scope and VIOLA! first is BRACKEYS! :) Miss you man. All the best to you! :)
@kingreinhold9905
7 жыл бұрын
You're such an awesome teacher :O I'm learning so much, thank you! Go on like this!
@not_herobrine3752
3 жыл бұрын
now its all up to us, as he left
@Adam-cn5ib
7 жыл бұрын
22:00 XD sounded so funneh
@oskarkrogsgard3014
7 жыл бұрын
Yes, he's clearly cutting the video xD
@itay7884
3 жыл бұрын
Thanks helped me a lot with my FPS game
@boem231
5 жыл бұрын
Old video’s are still great!
@Capnarchie
7 жыл бұрын
brackeys please do a chat tutorial for multiplayer!
@miragohil4710
5 жыл бұрын
Yes plssss
@mixup887
3 жыл бұрын
4 years ago?????
@Capnarchie
3 жыл бұрын
@@mixup887 and?
@mixup887
3 жыл бұрын
@@Capnarchie I just thought it was crazy I can’t believe how long he’s been doing KZitem
@ivel17
3 жыл бұрын
Anyone found the tutorial?
@leetnightmare1737
7 жыл бұрын
I think it's better to check if the animation is done than to wait some time, so you can use that for another weapons with different animations too.
@TheForceElementz
2 жыл бұрын
you can use animation event
@DrunkBearzz
7 жыл бұрын
1.) IEnumerator 2.)Separate camera rendering 3.)Exit time on animation So yea, that's what you taught me today ,tnx man ;)
@suustv7538
7 жыл бұрын
you are awesome man!!!! love your videos!
@not_herobrine3752
5 жыл бұрын
Or, position a camera in front of the scope and give it a small fov. Then add a render texture and set the camera render target to that texture. Then somehow insert a raw image into the scope. Your method is great also
@rhodges26
6 жыл бұрын
This was a great tutorial, I am currently creating and working on game and this helps a bunch.
@xgaming3119
5 жыл бұрын
I am an Arab, but I understand your explanation very well, you are wonderful
@Mikelica69
3 жыл бұрын
:D
@Redec55
7 жыл бұрын
That actually looked so beautiful
@julienaye8699
4 ай бұрын
For those working on it more recently and on URP, you will have some trouble for the cameras. The solution is to make your new camera Render Type as an Overlay, and to put it in the main camera stack tab.
@advdeveloper9185
7 жыл бұрын
Thats so good , and the best part is that tutorial can be useble for pistol ak47 and anygun else
@renanuness15
7 жыл бұрын
Such a great video, awesome material. Thank u man.
@giovannicescutti1751
7 жыл бұрын
The best tutorial ever for the sniper scope
@Querxes
7 жыл бұрын
Brackeys, Could you please on your FPS series or a seperate video do a video on making Zombies or Creatures that can kill the player, And you kill zombies with your weapons! This would be really cool and i think would help many people with their projects!
@ovrdseovrdse
6 жыл бұрын
And yourself. You can't just rely on tutorials to make your game for you.
@thesquarerootof8350
6 жыл бұрын
This is the most helpful video I've ever watched
@adhibabu2304
6 жыл бұрын
best unity tutorials i have ever seen,
@veno501
7 жыл бұрын
Hey [ ], could we get more tutorials like game math theory and that lighting video, I like the ones that are broad but solve complicated problems :D And maybe stuff on mobile game input (and whats different) or how to organise your game controller scripts like scene transitions/menus/level stats... Just a few ideas :D
@grunf5604
7 жыл бұрын
veno501 I second this idea!
@butterfrog0
6 жыл бұрын
I'll third it?
@ovrdseovrdse
6 жыл бұрын
Fourth it
@miragohil4710
5 жыл бұрын
Array hey created!!
@kunalkashyap863
4 жыл бұрын
U are a really great Teacher and deserve more subs and viewers
@racegroundbreaking82
4 жыл бұрын
I cannot believe that I have gotten this far! I have no words to thank you!
@philharland9591
3 жыл бұрын
Where would we be without Brackeys? Sadly missed, maybe he'll come out of retirement one day and do some more!!!
@PrabhasRanjanPatna
3 жыл бұрын
Best video for scope effect
@lovishcool
7 жыл бұрын
Awesome tutorial as ever....You are really amazing...
@cmlee311
4 жыл бұрын
Thank you :) You saved my sleep!!
@techniphics8229
4 жыл бұрын
Literally You are great, I was facing problems with zooming, now I am considering this tutorial as the most helpful for me, not only this one, others are also bests of bests......just incredibly love your work, I will definitely pay you after getting a parttime or fulltime job, now I am a beginner and currently concentrating on developing these skills, and now I have nothing to donate you, never mind....;)
@marcinziajkowski3870
Жыл бұрын
Brackeys when will you be back? I still have hope for your glorious comeback,
@peyril9751
6 жыл бұрын
Awesome tutorial! Thanks!
@Michal005
4 жыл бұрын
Great video, it helped me with doing scope
@Phenomenon-eh5gv
6 ай бұрын
professional guide thanks man 👍
@TeamHarrisonMachine
7 жыл бұрын
Awesome tutorial! This shows how they made HitmanSniper
@nityamgandhi25
4 жыл бұрын
Thank You SO much Big Brack
@garimasharma2384
3 жыл бұрын
I have downloaded this asset brackeys!!
@zainraza2822
6 жыл бұрын
bracky you are the best unity developer .Love u so much
@alexrayoalv
2 жыл бұрын
If anyone else happens to be doing this on URP and while setting up WeaponsCamera realize that Clear Flags doesn't exist, what worked for me is setting Render Type of WeaponsCamera to Overlay and then in the Main Camera adding it as a Camera under Stack.
@carlantoine3312
7 жыл бұрын
great video I was wondering if you could show us how to make an automatic matchmaker with unet.
Wait this video has 0Dislikes, I have never seen a video with no dislike but like 200likes, Awesome!
@martinmancuso2574
7 жыл бұрын
awesome! and It was explained very good!, thanks bro!
@tomd7281
6 жыл бұрын
I'm into tutorials again, thanks!
@anmar103
7 жыл бұрын
Hey Brackeys, please can you make a tutorial on how to make teams in the fps multiplayer game? and also how to make a room lobby. Where the player can choose a team and have a ready button. So if not all the player hit the 'ready' button the host can't start the game. Also, special spawn points to each team.
@z4inz
7 жыл бұрын
My main man.
@lstudiostm4581
4 жыл бұрын
But, will this have the problem, that when I am in multiplayer, I will not see other weapons, when I am scooped?
@menyus777
4 жыл бұрын
You only disable it on client side? O.o
@DJLKM1
4 жыл бұрын
Might have to layer the weapon somehow and swap the layer at runtime so only the player scoped cant see the weapon, if thats possible.
@R3lay0
4 жыл бұрын
You should be able to just not set the weapon layer on weapons that aren't owned by the player.
@torgrimwallgren9840
6 жыл бұрын
You should probably add a secure connection to your website, like those https with greenlocks, if you want people to pay you by cards over the internet. Atleast I usually see them in major retailers on the internet.
@monkeysaur4305
7 жыл бұрын
Hi, thanks for this tutorial! One question, I'm doing something similar for a "telescope" cam, and I just have a keybuttondown which flips a bool and my main camera vs my telescope camera are each enabled and disabled based on that bool, so press "T" to see telescope view and press again to revert to main camera, I'm then setting the field of view for each camera in the Inspector. That was super easy to set up, but I am curious whether my hard and fast approach of enabling and disabling two cameras on a bool is a bad way of doing things? Could it cause me any problems? Thanks for any tips/advice.
@hybridjaviepsilon9749
7 жыл бұрын
Great high quality vids!
@ghostedits.mp4451
5 жыл бұрын
Thanks! I made a futuristic FPS and just downloaded some $5 guns and customized them so me and my friend keep doing duels!
@xanny57
7 жыл бұрын
Amazing Tutorial, helped me very much, but I have a small problem: My Scene camera (that view in which I fly around the scene has a very short render distance (after the tutorial)... I don't know why, that's why I'm here in the first place... For example when I fly towards my weapon, it just cuts of any only the skybox is rendered... I need help, please ;(
@MarxTM
7 жыл бұрын
Jaby Nator try to set the clip settings from the camera to 0
@prashantghartee4262
5 жыл бұрын
Thanks very much for easily teaching us
@parkmin
2 жыл бұрын
THX Of the your Tutorial
@RegenerationOfficial
5 жыл бұрын
cool that you name the bool like the animation... if that won't work try to change it to isScoped instead of Scope if your engine says it doesn't exists
@riyadrahman9844
6 жыл бұрын
Dude !!!! you are my hero !!! thanks a lot
@meltpack8876
7 жыл бұрын
"Add a few references in visual studi here"
@animatorsstudio1511
4 жыл бұрын
When I am scoped in the field of view changes for a a second and then comes back to normal. What can I do???
@jacktiebie3859
5 жыл бұрын
Wow! Thank you so much for this helped me so much i finally understand it!!!!
@gokayakcay7093
7 жыл бұрын
Hi Firstly It is an awesome tutorial.Thank you so much ! I have a question for you. When I look my codes after 10 20 minutes I see them very complicated. So what do you think ? What should I do to make them very regular ?
@SwayamVaza-qr8vs
2 ай бұрын
Thank you boss
@leandremichelfrancois6243
7 жыл бұрын
And I want to receive notifications from your channel
@manteh2656
7 жыл бұрын
Found out that if you click right mouse button rapidly, the zoomed in field of view becomes main and you can't change it back to normal by scoping out again. Basically a bug.
@SwastikBiswas
5 жыл бұрын
umm... sorry but i cant import the standard assets package. plz give me some tips. btw ur videos are awesome and i understood 99% of c# using ur tutorials. btw plz help me.
@tigogojarek
4 жыл бұрын
Life saver, thank you
@asmodeoloyalvillacorta508
5 жыл бұрын
You are amazing.
@tronlinestudios3969
7 жыл бұрын
Great tutorial!
@whoisgliese
4 жыл бұрын
When I scope out there is no animation at all, it just goes straight back to the idle animation. Is this happening to anyone else and did you fix this?
@NarTheNecromancer
4 жыл бұрын
I'm having the same problem currently.
@whoisgliese
4 жыл бұрын
@@NarTheNecromancer I fixed it. Somehow. Do you have your weapon holder selected?
@NarTheNecromancer
4 жыл бұрын
@@whoisgliese Yeah, I also noticed that it only snaps when manually clicking the Scoped box in the animator. Whenever I set up the input for going in and out of Scoped it seems to transition smoothly back and forth.
@LeHalazoone
3 жыл бұрын
Please HELP, it is my first 3D tuto. I have a problem in 1:18 , i can not get Characters when doing right click - Import Package... WHY? THANKS :)
@DushyantDeshwal
7 жыл бұрын
Can you also discuss basics of developing assets like gun or Sunglasses.
@RunePlays
7 жыл бұрын
I want to pay you millions but i'm broke :(
@anonymoustrap2677
4 жыл бұрын
I wanna hire him as my teacher, but i'm over sea and unable to afford
@chimken4415
4 жыл бұрын
Same sad ;-;
@racegroundbreaking82
4 жыл бұрын
someday, man...
@Avi3ator
7 жыл бұрын
Make an Multiplayer RPG please :D With like different classes, quests, levels, bosses(?) and maybe duels :D
@Avi3ator
7 жыл бұрын
Great Video By the way
@acorad30
7 жыл бұрын
multiplayer = difficult. an RPG SP is better imho
@Avi3ator
7 жыл бұрын
Not hard for brackeys :P But yeah single player would be just as good :P but i dont think he will do it in the near future ;(
@acorad30
7 жыл бұрын
Avi3ator i know it's not hard for brackeys but it is for me or anyone else that wants to recreate it :D
@Avi3ator
7 жыл бұрын
naah not if you follow along :P
@armbreak24
2 ай бұрын
SO GOOD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@thenewgameevolution5442
7 жыл бұрын
Has anyone a code for sensitivity change when scoping? thanks in advance for your reply!
@Username-yb7pe
7 жыл бұрын
what is your problem, i would be happy to help
@SR-ir2ex
6 жыл бұрын
TheNewGameEvolution If its still actual: As soon as u aim downsighty access the script wgich controls ur camera rotation. There should be a float/int that defines the sensitivity. Change this value as u want. If there is no float/int that defines the sens. just declare one and put it at the camrera script to the spot where the sensituvity value is defined. This could look like this: using... Class... public float sensitivity = 4.5; Void Update () RotateCam sensitivity*Time.deltaTime Pls don't blame my grammar
@rockit14
6 жыл бұрын
Did anyone find a solution to this?
@gezhu9904
6 жыл бұрын
I think you need to change the Unity first person controller scripts using Aluu's methods
@kirillsviderski4739
6 жыл бұрын
just a change mouse rotation axes by a multiplier in your controller script.
@mohameddevelop9419
4 жыл бұрын
Thank You
@HimanshuTripathi
7 жыл бұрын
Hy... Can you please do a live stream on car racing 3d game. Please....
@meta_ai
7 жыл бұрын
AWESOME STUFF. I WISH I COULD PAY FOR THIS. I WANT TO REALLY !!!!! GREAT WORK
@bunny3500
6 жыл бұрын
obaid ullah you can on patreon and when downloading assets
@alejandrozamora3468
7 жыл бұрын
for some reason when there is light, I see like little pixels that should not be there. any idea what that could be. this happened after I followed this great tutorial that helped me with my clipping problems.
@volodymyrkott1919
7 жыл бұрын
Заебись, чётко делает. Всегда смотрю новые видосы от Brackeys) Thank's man
@yeabseraendalkachew9591
6 жыл бұрын
thank you bro keep it up!!!
@akashvemulapalli260
7 жыл бұрын
Thanks a lot for the video
@sivacse24
7 жыл бұрын
Awesome explanation... Since the weapons camera has highest depth Canvas UI(game menus) are behind the weapon how to solve it?
great tutorial. but isnt it bad practice to make variables public if they are only meant to affect its member functions?
@HelpingPanda
7 жыл бұрын
Instead of using the Coroutine on OnScoped and OnUnScoped you couldn't you use the Invoke function? What are the benefits of a coroutine vs a Invoke, except being able to have several delays.
@ChronoCZ
7 жыл бұрын
Invoke will call the function after the dalay has passed. So that is the same as a Coroutine. BUT when a player spams the scope in button the commands are going to get "queued up" when using Invoke which is something that you don't want. While a coroutine will only get called once. Hope it helps.
@benw8274
3 жыл бұрын
my sniper only zooms in during the animation and then goes back to the normal fov when the scope overlay is there
@genuinefraud8262
6 жыл бұрын
i need help it says only this error: Assets/Scripts/Scope.cs(22,18): error CS0103: The name `OnScoped' does not exist in the current context the script is here: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Scope : MonoBehaviour { public Animator animator; public GameObject scopeOverlay; private bool isScoped = false; void Update () { if (Input.GetButtonDown("Fire2")) { isScoped = !isScoped; animator.SetBool("Scoped", isScoped); if (isScoped) StartCoroutine(OnScoped()); else OnUnscoped (); } } void OnUnscoped () { scopeOverlay.SetActive(false); } IEnumerator Onscoped () { yield return new WaitForSeconds(.15f); scopeOverlay.SetActive(true); } } P.S. i wrote it in notepad sooo :/ i jjust got sick of that stupid visual studio startup time and the annoying login things!!1
@iDigvijaysinhG
5 жыл бұрын
It is way too late but thats because of your IEnumerator is Onscoped and your are starting it as OnScoped, basically a typo
@reversible8740
7 жыл бұрын
if you have a dual camera setup for clipping on a multiplayer game. it gets really weird when you get close to a second player. Please help!!!
@johannes-vollmer
6 жыл бұрын
Reversible just don't do dual cameras at all. It's simply not right, it's fighting the symptoms but not the actual disease. instead of two layers, just increase the colliders dimensions, so that two players cannot walk through each other. That's how the real world works. Also, separate layers probably introduce an unnecessary overhead for the computer.
@reversible8740
6 жыл бұрын
Johannes Vollmer Yeah this works great! Thanks just wondering since you made intros. Do you think since I know some blender I should make my own or pay someone. I probably will use unity time line but model everything in blender if i make my own intro
@jwchunn
6 жыл бұрын
So how do you hide the rifle when scoped?
@azuraii5238
6 жыл бұрын
Just set it to inactive. GunGameObjectName.SetActive(false);
@CredixNetwork
6 жыл бұрын
Glad Ce7en actually helped, and didn't say "it was in the vid you dumbass", nice job community!
@itsbayside6802
7 жыл бұрын
im new to unity and this made it a bit easier but would you show how to do the animation when youre zoomed in?the breathing part?
@OnceUponATimmyy
4 жыл бұрын
Why use the IEnumerator instead of Invoke(X, 0.15f);? at 19:15
Пікірлер: 470