GameDevLuuk
GameDevLuuk
  • 6
  • 129 709
Artillery shooting in Unity using Angle, Power & Trajectory
In the previous tutorial we made a destructible terrain. In this tutorial we focus on the tank shooting projectiles artillery style like you see in Worms. The player can set the angle and the power with his mouse and fire a projectile that follows this trajectory.
0:00 Intro
0:45 Tank prefab setup
01:30 Aiming script
07:32 Shoot script
09:00 Projectile script
12:44 Outro
-------------------------------------
Support GameDevLuuk on Patreon!
patreon.com/gamedevluuk
♥ Subscribe: bit.ly/3gIbu7W
BE PART OF THE COMMUNITY
-------------------------------------
● Join the Discord: discord.gg/p5VQZKN
● Instagram: gamedevluuk
● Twitter: gamedevluuk
Переглядів: 8 426

Відео

How to optimize your Unity game for Mobile, PC & WebGL: from 230MB to 3.7MB
Переглядів 93 тис.4 роки тому
How to optimize Unity Mobile, PC & WebGL to reduce build size? Is your Unity build as small as possible? Information about optimizing a Unity Mobile, PC & WebGL build is very limited, but not anymore! In this tutorial we take a look at optimizing the textures of a Unity build with incredible results. I started at 230MB and brought it back all the way to just 3.7MB. 0:00 Intro 1:34 Finding Bottl...
Weapon Generator inspired by Borderlands using Unity: Dropping weapon physics, raycast to enable UI
Переглядів 2,3 тис.4 роки тому
Borderlands is known for their randomised weapons and having a 'gazillion' guns. Do you want your game to have a near endless amount of weapons or just interested in how it works? Let's take a look at how they did it and create a random weapon generator from scratch ourselves in Unity! This is the final part. Part 1 - Generating the weapon ua-cam.com/video/uUcPccXTtE4/v-deo.html Part 2 - Statis...
Weapon Generator inspired by Borderlands using Unity: Equipping, Firing & Particle FX
Переглядів 2,9 тис.4 роки тому
Borderlands is known for their randomised weapons and having a 'gazillion' guns. Do you want your game to have a near endless amount of weapons or just interested in how it works? Let's take a look at how they did it and create a random weapon generator from scratch ourselves in Unity! This is part 3 of a series. Part 1 - Generating the weapon ua-cam.com/video/uUcPccXTtE4/v-deo.html Part 2 - St...
Weapon Generator inspired by Borderlands using Unity Part 2.
Переглядів 7 тис.4 роки тому
Borderlands is known for their randomised weapons and having a 'gazillion' guns. Do you want your game to have a near endless amount of weapons or just interested in how it works? Let's take a look at how they did it and create a random weapon generator from scratch ourselves in Unity! This is part 2 of a series. Part 1: ua-cam.com/video/uUcPccXTtE4/v-deo.html Part 2 topics: 0:00 Intro 1:30 Add...
Weapon Generator inspired by Borderlands using Unity.
Переглядів 16 тис.4 роки тому
Borderlands is known for their randomised weapons and having a 'gazillion' guns. Do you want your game to have a near endless amount of weapons or just interested in how it works? Let's take a look at how they did it and create a random weapon generator from scratch ourselves in Unity! This is part 1 of a series. Support GameDevLuuk on Patreon 😎 patreon.com/gamedevluuk ♥ Subscribe: bit.ly/3gIbu...

КОМЕНТАРІ

  • @dreamer_0001
    @dreamer_0001 21 день тому

    Yoo Thank you so much you are the best!!

  • @rinorramadani9034
    @rinorramadani9034 Місяць тому

    how you get all this good qyality. when i create a cricle on scene, and play on my phone (in unity remote)my quality is low and my fps is down why ??

  • @Chris-yq1fw
    @Chris-yq1fw Місяць тому

    funny how a man out of nowhere drop some tutorials on what I really need, then just disaprear. If you're reading this, thanks man

    • @GameDevLuuk
      @GameDevLuuk Місяць тому

      Still here👀 , thanks for the comment, keep creating 🎲

    • @Chris-yq1fw
      @Chris-yq1fw Місяць тому

      @@GameDevLuuk any chance you'd be back and make some new tutorials ? I like your contents

  • @FileTh1rt3en
    @FileTh1rt3en 2 місяці тому

    Took my game from 2.6 GB to 0.7GB, loads about 4 times as fast now and of course is much smaller. Very great and informative video actually.

    • @GameDevLuuk
      @GameDevLuuk Місяць тому

      Thanks for the comment and very happy for your result :)

  • @tobario
    @tobario 4 місяці тому

    Still waiting for that audio optimization video ;)

  • @rCr101990
    @rCr101990 4 місяці тому

    the best! thanks!

  • @vrfxrealtime
    @vrfxrealtime 4 місяці тому

    very helpful thanks for sharing!

  • @georgejegiazarjan
    @georgejegiazarjan 5 місяців тому

    cool

  • @jvstAsYouAre
    @jvstAsYouAre 7 місяців тому

    Well done mate

  • @SlothHuntOnYou
    @SlothHuntOnYou 8 місяців тому

    what about sounds? .s3m .xm .it .mod = are not playble in webGL=((( it's huge problem=(

  • @CaptainFX1
    @CaptainFX1 8 місяців тому

    Will it work if the player's side is to the right or left?

  • @KenlieroGames
    @KenlieroGames 9 місяців тому

    Can you optimize files directly from asset folders with other app. So that when you save the file, lets say using photoshop, then the next time you start Unity, it automatically loads that (newly modified) file on startup?

  • @attenurmi936
    @attenurmi936 10 місяців тому

    Super nice tips! Thank you!

  • @JonelKingas
    @JonelKingas 11 місяців тому

    is it even posible to make low mb game like 5 MB etc, cause from what I see in my build editor log my small game that's pixel art takes Total User Assets 8.6 MB but it says Complete build size 71.6 MB? what are those other 63 mb?

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

    6:00 You should increase the game preview scale to 1.0 to get an actual representation of what your assets will look like in the specified resolution.

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

    For the start this should be enough.

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

    This tutorial is absolutely fantastic and I cannot thank you enough for it. I wanted to make a borderlands type game. If it were possible, I’d love to see how to animate the various guns, since different guns will have different reloads. Its been a while since youve uploaded to this channel, so I hope youre doing okay!

  • @USSR-Lenin-Stalin-Forever

    how to make Unity display the texture weight like yours?

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

    Thanks so much! I had the aiming part down of my project, but I was trying to figure out a way to shoot at an angle and your projectile and shoot scripts helped.

  • @457Deniz457
    @457Deniz457 Рік тому

    Wow NICE !

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

    When is the optimizing audio video :(

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

    very appreciated your hard work and understandable tutorial thank you so much

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

    How can we optimise it without diminishing the quality?

  • @What-a-save
    @What-a-save Рік тому

    im using only UI elements IDK why even im using unity

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

    The change to the power of 2 seems to have a reverse effect in my project. While I had to reduce the width of my sprites slightly I also had to increase the height (added transparency) on most of them and after the changes the project is slightly bigger. Has anyone got any ideas about this? Not a big problem though I still reduced the size of the project significantly by: * lower the quality of sounds and music. * change compression from gzip to brotli (my new server supports it, it works well) * change texture format from DXT to ASTC * strip unused code (high)

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

    am very impressed on how this simple system with a good pack can create over 15 thousand unique weapons Great work

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

    Really impressive! I just reduced my build from 46mb to 12mb and still have more assets to change.

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

    This is amazing. Thank you

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

    the outline asset dosnt work for URP :' (

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

    amazing!!! appreciate it man!

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

    this is really helpful thank you !

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

    Thanks bro!

  •  Рік тому

    cant seem to find the previous tutorial :o

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

    Dude! I was trying to apply this into a concept of my own but I noticed you didn't show the "UIWeaponStat" script! It does seem simple but I can't manage to do it. Could you show the script anywhere?

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

    Duude! That was awesome! Thank you!

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

    I can't figure out the script UIWeaponStat, and its missing in the video. does anybody know the content?

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

    how do I add firemode for different weapons? like randomize between burst fire mode or automatic?

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

    Best texture size optimization video ever

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

    is possible to make a script that catches the target position and the projectile start position and angle and calculate the power? I made many calculations and nothing works!

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

    Hello, can this optimization be used only on Ui, can it be used on model mapping?

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

    Wow. Unity is much easier for this than unreal. i quit unreal and learn unity (:

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

    Hi I know you haven't uploaded in a while but I have found this set of tutorials really useful my only difficulty is that I understand I am to specify the stat type and use the UiWeaponStat list to outline and change the number value in the UI card. I uncertain on how you formatted the list to cover the image, the stat name and then the value. or if you only done the value and left the rest of the Stat info as static

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

      Also left me confused about the part covering the setstatvalue within the foreach loop and i was just wondering whether or not that is running as a seperate function and you are calling the function or if that is part of the list where the values as held and it just replaces them when this is called as long as the name space is the same

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

    My Lord, this man just got another subscriber

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

    Sprite atlas WILL FIT ALL! Do not mislead people! There is #1 in the top right over the atlas previre - this is the number of atlas it generated. It will generate as much atlases as needed to fit all!

  • @李洋-b6b
    @李洋-b6b 2 роки тому

    Mipmap will occupy memory, webgl lack of memory,Is this ok?

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

    You're a good teacher. Thank you, friend. I don't make games, but I love Borderlands and was curious how their system can make so many weapons.

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

    nice work mate :)

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

    I'm having an issue, when applying the weapon stats, I can't have more than 1 part give the same stat, I get an error saying that the key already exists.

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

    Thanks for the series, it made my transition from GameMaker to Unity so much more easier.

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

    How would you handle this if you had sockets on other parts? For example, I have a muzzle socket on my barrels for things like suppressor, etc. This code only works if all sockets are attached to the body.

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

      You would just need to repeat the same thing for the barrels. Save each barrel as a prefab with a socket for the suppressors (or other attachments). Then you can control the generation similar to the video. I would handle attachments (that aren't required for a functional weapon) to have a smaller chance of being generated. Let's say 40% chance to get an attachment. Then pick one attachment from an array and slap it on the weapon. If it's an attachment that changes how the weapon handles or sounds, then you will just simply have to find a nice way to handle that. Let's say you get a silencer, then you want to set "isSilenced" to true and switch out what sounds the gun will have when it shoots somewhere in the script.