Brawl Stars Shooting mechanics | Top down game | Unity3D

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 70

  • @CodingJedi
    @CodingJedi  4 роки тому +1

    Hi, to understand what object holds the Script and the Player hierarchy
    you can check this out-
    imgur.com/gallery/ciIiU5r
    watch our Happy Glass game mechanics Tutorial -
    ua-cam.com/video/v8yQiJ9Bf34/v-deo.html

  • @jozsefpuskas6548
    @jozsefpuskas6548 2 роки тому

    You make me happy, thank you for living in the same world as me and helping others!!! You are an awesome person!!

  • @simonekk37v3
    @simonekk37v3 Рік тому

    Hello, I need help shooting my character Because bullets don't fly

  • @zero_charge8684
    @zero_charge8684 6 місяців тому

    I did everything you did in the tutorial, but the bullets don't disappear when they reach the max distance. Any idea what's going on?

  • @poondauwu
    @poondauwu 4 роки тому +7

    When I tried this, it didn’t work. One end of the line renderer was at the player’s position and the other end was at where attack trail was, and all the joystick did was rotate the line renderer. Please help! I also noticed you changed a lot of things without saying. You should tell us what you are doing instead of doing this.

    • @CodingJedi
      @CodingJedi  4 роки тому

      Hi did you set the line renderers position at 1 index ?
      LR.SetPosition(1,transform.position + transform.forward * trailDistance);
      Important- Make sure the trailDistance value is not 0.

    • @Sober-MindedYT
      @Sober-MindedYT 3 роки тому

      @@CodingJedi Hi, thanks for tutorial, but i cant inderstand how did you changed the colour of linerenderer. Can you explain please?

    • @alekseplays
      @alekseplays 3 роки тому

      @@Sober-MindedYT Hi there!
      To change the color of the LineRenderer you can go to the Materials Tab of the Line Renderer, once you give it a material the LR will get that material or texture :)

    • @Sober-MindedYT
      @Sober-MindedYT 3 роки тому

      @@alekseplays thanks, I've already solved this problem))

  • @Cong99
    @Cong99 4 роки тому

    Attack LookAt, What is it for? Please help me!

  • @diego3901
    @diego3901 3 роки тому +1

    on the github script there is NO OnPointerUp, which I assume is to make the player start shooting when the finger is released. I dont understand how its shooting on touch release without it

  • @juanestebanzuluaga2446
    @juanestebanzuluaga2446 4 роки тому +1

    Excellent work, I subscribe, it's great

  • @FreakyStudios
    @FreakyStudios 4 роки тому +1

    Incredible Bro !

  • @willem-ariegoudzwaard281
    @willem-ariegoudzwaard281 Рік тому

    What is inside the LineRenderer object?

  • @user-rp8vl5jl9c
    @user-rp8vl5jl9c 4 роки тому +1

    I didn't get no Debug.Log message until I changed Update() with FixedUpdate(), any idea why is that?

    • @CodingJedi
      @CodingJedi  4 роки тому

      Did you save the code with Update? It could be that! It should work with both!

    • @user-rp8vl5jl9c
      @user-rp8vl5jl9c 4 роки тому

      @@CodingJedi I did save it with Update() at first, but it didn't work

  • @baromir19
    @baromir19 3 роки тому

    Good day! You do not know at the time what angle of the camera, on the higher view, in Brawl Stars?

  • @avigyandas3829
    @avigyandas3829 4 роки тому +1

    Got a question! How do you make the sprite stick to the last position it was placed and not come back to the origin position of the player? In the last video, you did not do it, but from the starting of this video, you have that integrated, I wanna know how to do that! Please reply. Thanks!

    • @CodingJedi
      @CodingJedi  4 роки тому

      Hi, the fake shadow sprite that i added?
      I just positioned it that way and made it the child object of our player object!
      I hope this helps, if I misunderstood then please do ask again!

    • @avigyandas3829
      @avigyandas3829 4 роки тому +1

      @@CodingJedi 0:06 in the previous part, whenever the joystick was left idle, the smaller sprite used to come to the initial place, i.e., under the player, but from the starting of this episode, the small sprite is remaining at the position it was last left in with the joystick and does not move to under the player. If you still didn't get what I mean, please drop in your email so that I can talk to you about the problem broadly :D

    • @CodingJedi
      @CodingJedi  4 роки тому

      Okay i got it so actually the same thing is being done still! All i did was i also disabled the sprite when player isnt using joystick anymore.
      The joystick script should have an OnPointerUp and Down.
      in Up i did ->
      sprite.gameobject.SetActive(false);
      And in down i made it true!
      In the starting intro of this i actually dint lift the finger off the joystick so it might look that it stayed at that position!
      But if you want to do something like that in which the sprite stays at last position it’s totally possible!
      What you should do is only change the sprites position in Joystick’s OnPointerDown so while the player is moving the joystick the position will be changed so it wont return back to default position.
      If you are using the joystick pack you might find this stuff!

    • @avigyandas3829
      @avigyandas3829 4 роки тому

      @@CodingJedi okay, let me try and I'll tell you what I will go through, and if I encounter problems, hopefully you'll be here to help...

    • @avigyandas3829
      @avigyandas3829 4 роки тому +1

      @@CodingJedi but visual studio is not suggesting any function called OnPointerUp() function. It would be so nice, if you could elaborate how to use it in code

  • @Mchucky78
    @Mchucky78 4 роки тому +1

    Can't figure out how to setup the scene. Could you please share the scene file or explain, which script should be added to which object et cetera?

    • @CodingJedi
      @CodingJedi  4 роки тому

      Hi, did you watch the first part of the video?

    • @Mchucky78
      @Mchucky78 4 роки тому

      @@CodingJedi Yes i did. But in part 2, some steps are not well explained, so i cannot figure out,where to add the scripts und so on..

    • @CodingJedi
      @CodingJedi  4 роки тому

      I hope this helps-
      imgur.com/gallery/ciIiU5r

    • @Mchucky78
      @Mchucky78 4 роки тому +1

      @@CodingJedi Thank you, i will try that..

    • @Mchucky78
      @Mchucky78 4 роки тому +1

      It works. Thank you so much.

  • @eldoxx27
    @eldoxx27 3 роки тому +1

    how i can add brawlers?

    • @npc159
      @npc159 3 роки тому +2

      There is a new part were you can choose! In this Menu you can add Brawler, like the way before. Sry for my english!

  • @dvoelittle601
    @dvoelittle601 4 роки тому +1

    Great work! thanks for the tutorial dude

    • @CodingJedi
      @CodingJedi  4 роки тому

      Thank you and No problem! :))

  • @JB-iz8bi
    @JB-iz8bi 4 роки тому +2

    Hi. My line renderer is really glitchy and is not like yours. It is always cut into half, and I don't know why. Pleaseeeee help me. Thanks! Great tutorial otherwise

    • @JB-iz8bi
      @JB-iz8bi 4 роки тому

      Ok, so, I fixed it. It was a silly mistake

    • @CodingJedi
      @CodingJedi  4 роки тому

      Was it by adding 180 rotation in z?

    • @JB-iz8bi
      @JB-iz8bi 4 роки тому

      @@CodingJedi Ok, so I am facing the same issue(cutting into half) and I do not know how to fix it. Pleaseee help. If this comment means adding 180 degrees in z, which line? I really need some help, thanks!

    • @JB-iz8bi
      @JB-iz8bi 4 роки тому +1

      Ok! I fixed it by adding 180 rotation in z, just like you said

  • @kev6310
    @kev6310 4 роки тому +2

    Hey man great tutorial, glad you uploaded a follow up to your previous video. Looking forward to seeing more from you :)

  • @JB-iz8bi
    @JB-iz8bi 4 роки тому +2

    Can you please leave the code for player attacking in the comments?? I am facing some issues, and I believe they are with the code. Just wondering, what is the value for TrailDistance variable.

    • @CodingJedi
      @CodingJedi  4 роки тому

      I uploaded the scripts for the first 2 part
      You can find the player attacking script in this!
      github.com/DivijManik/Brawl-Stars-Unity-scripts

  • @SMIndiaKhatri
    @SMIndiaKhatri 4 роки тому +1

    Great tutorial!

  • @danielenriquecotescastano2664
    @danielenriquecotescastano2664 4 роки тому +1

    Great!!!!

  • @hardikjain1704
    @hardikjain1704 4 роки тому

    Not working........ Please explain everything

  • @Herbert27
    @Herbert27 4 роки тому

    dude can you make a open source

  • @sikorka8268
    @sikorka8268 4 роки тому +3

    next video : building system from fortnite in unity

    • @CodingJedi
      @CodingJedi  4 роки тому +2

      I actually went ahead and did this!
      Thank you for the suggestion, the first part for Build system is on youtube now!

  • @WiteMike
    @WiteMike 3 роки тому +1

    Too fast; Too many changes that you did not describe during the video; There are also many changes that took place between the first and second videos that you did not mention...

  • @sajtcraft3473
    @sajtcraft3473 4 роки тому

    Dowload link pls

  • @FlyingDino92
    @FlyingDino92 4 роки тому +1

    Like it >v

  • @napoah
    @napoah 4 роки тому +1

    YES YHX

  • @ps5games821
    @ps5games821 4 роки тому +1

    goood tutor

  • @macaquitogamesbr
    @macaquitogamesbr 3 роки тому

    Hey, why do you hush so much in your videos? the content is amazing but the speed makes really hard to follow for noobies....

    • @CodingJedi
      @CodingJedi  3 роки тому

      Hi, I’ll make sure to make new videos at a slower pace.