Equip and Switch Multiple Weapons in Unity 2D | Weapon System Unity 2D

  Рет қаралды 36,899

The Game Guy

The Game Guy

Күн бұрын

Пікірлер: 47
@TheGameGuy
@TheGameGuy 4 жыл бұрын
For the *Copy/Paste gang* 😜 Grab the assets from : thegameguy.net/resources.html
@tanurai8048
@tanurai8048 4 жыл бұрын
cooooooooool
@wenddels
@wenddels 3 жыл бұрын
I wish i could find more tutorials like yours. Thank you so much
@brejnastore
@brejnastore 3 жыл бұрын
Tip: when u have shot sound and fast switch weapon sound will be disabled with weapon so add sound to the player
@bungercolumbus
@bungercolumbus 3 жыл бұрын
Here's a tip. You don't need to make a public gameObject for the object the script is attached to. You can simply write gameObject. For example the weaponHolder gameobject didnt need that since the script was already attached to the weaponholder.
@citysuperstar2945
@citysuperstar2945 Жыл бұрын
i love you. that was an amazing tutorial.
@배문성-w4m
@배문성-w4m 3 жыл бұрын
I am learning well. If weapon replacement is implemented in 3D rather than 2D, where and how can I change the code in the video?
@youtubechalao1580
@youtubechalao1580 4 жыл бұрын
LOVED IT!! can you do weapon pick up and drop too?
@Arthan81
@Arthan81 4 жыл бұрын
Yeah me too
@ballkicker2391
@ballkicker2391 3 жыл бұрын
me too couldnt find anything on the internet so I'm making my own now >_
@perssontm1628
@perssontm1628 3 жыл бұрын
Yeah I feel like if you do this kind of video you should cover it all, weapon firing, hotbar slots, drop and pickup. It would be the best video out there
@ΓιώργοςΧλιάρας
@ΓιώργοςΧλιάρας 4 жыл бұрын
You should put currentGun =currentWeaponsIndex out of the if statements.. So that it updates it automatically and you dont have to type it in every if statement for weapon change..Same goes to some other lines that you wrote.. You win about 5-6 lines (around 67-92KB)
@vgmz59
@vgmz59 3 жыл бұрын
can you please rewrite the code
@RHCIPHER
@RHCIPHER 3 жыл бұрын
you are the best
@sheerazali5178
@sheerazali5178 4 жыл бұрын
Keep up the good work
@perssontm1628
@perssontm1628 3 жыл бұрын
Is there any simple way to drop and pickup your weapons aswell? This would REALLY help me please I really need this
@Alan742
@Alan742 Жыл бұрын
Thank you
@deadbroadcastpc
@deadbroadcastpc 4 жыл бұрын
Very informative, thanks for the tutorials man!
@retekcorp
@retekcorp 3 жыл бұрын
I tried to apply this and the previous tutorial to my ragdoll stickman, but it doesn't work! Maybe make a weapons tutorial for stickman like Stick Fight the Game? Great video, overall!
@klerisbiba5089
@klerisbiba5089 3 жыл бұрын
hello i'm currently making a stickman game and I want to put the mechanic that when you touch a weapon you pick it up. Can somebody help me
@KannieGamen
@KannieGamen 3 жыл бұрын
is there a way to holster the weapons on the player? like a shotgun on your back
@raidoksgames3510
@raidoksgames3510 4 жыл бұрын
In the last video You had Player Shot Script . But now is shootingScript . What you changed?
@raidoksgames3510
@raidoksgames3510 4 жыл бұрын
In codes
@TheGameGuy
@TheGameGuy 4 жыл бұрын
I just took out some of the gun settings from the previous script as i lost my project.. rest of the script works in the same way, you can just use the previous script without any changes to the code..
@a.technology1446
@a.technology1446 4 жыл бұрын
Great ❤️
@susyballs329
@susyballs329 3 жыл бұрын
I need Help my problem is make a 3d game and when i move the cam only the first weapon cam moves when i change to the second the cam is not moved
@Arthan81
@Arthan81 4 жыл бұрын
Hey can you make a drop item and enquip item? Its ok if you can not if can i will wait
@TheGameGuy
@TheGameGuy 4 жыл бұрын
Sure why not.
@blobbyhead1373
@blobbyhead1373 3 жыл бұрын
@@TheGameGuy when will you make it
@toxicrebel42o
@toxicrebel42o 3 жыл бұрын
@@TheGameGuy have u done this yet? im looking to use this in a way like COD does where i have two weapon slots but can swap them with ones on the ground and ones dropped by other players/npc
@toxicrebel42o
@toxicrebel42o 3 жыл бұрын
anyone know how one would do this but make it so the player can only hold two weapons max and then drop/swap the current weapon for one on the ground with a key press like Call of duty. a reply or a link to a video that would help me do this is appreciated. plz & thx
@MarkJrLuat
@MarkJrLuat 4 жыл бұрын
Nice vid! But how do I make it so I can switch the weapons with the scroll wheel
@toxicrebel42o
@toxicrebel42o 3 жыл бұрын
did u solve this?
@francescogerlin8006
@francescogerlin8006 2 жыл бұрын
You can use if(Input.GetAxis("Mouse ScrollWheel")) instead of the E key
@Arthan81
@Arthan81 4 жыл бұрын
Thx man
@c0b0exe
@c0b0exe 4 жыл бұрын
anyway to edit this script for if the player is picking up weapons and starting with none? trying to figure out how to make the array search in update but I can't get it to work properly
@raidoksgames3510
@raidoksgames3510 4 жыл бұрын
How you can add Sound shoot ?
@dfcdw5937
@dfcdw5937 4 жыл бұрын
how many game do you make and publish on play store
@TheGameGuy
@TheGameGuy 4 жыл бұрын
i have made quite alot of games over the years but only published a couple games on play store.
@dfcdw5937
@dfcdw5937 4 жыл бұрын
@@TheGameGuy sorry but i want to ask that can google play ban our developer account if we publish our games which are not interesting and not good . i mean flop games
@mintesnotmelese6552
@mintesnotmelese6552 4 жыл бұрын
@@dfcdw5937 NO you can upload by game (Even if it's shit )
@Juan-rb5uv
@Juan-rb5uv 3 жыл бұрын
Deberias hacerlo para los celulares
@oliverwilson5796
@oliverwilson5796 3 жыл бұрын
How Can I use this script with a touch button?
@deeptiyadav923
@deeptiyadav923 4 жыл бұрын
Thanks copy paste gang go brrrrrrrrrr
@CloudC-kj6kt
@CloudC-kj6kt 3 жыл бұрын
10min video 4 min ads
@Jedroy52
@Jedroy52 3 жыл бұрын
Thank you)
How to make 2D Shooting in UNITY with Gun Recoil - Unity 2D
15:10
The Game Guy
Рет қаралды 36 М.
Swapping Weapons in Unity - Game Dev Tutorial
16:18
Lost Relic Games
Рет қаралды 17 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Switching Between Weapons | Recreating Zelda
6:38
Challacade
Рет қаралды 12 М.
FULL PICK UP & DROP SYSTEM for WEAPONS or ITEMS || Unity3d Tutorial
5:45
Dave / GameDevelopment
Рет қаралды 193 М.
Level Up with Experience Points in Unity
8:27
BMo
Рет қаралды 17 М.
2D Weapon Pickup & Swap - Unity
9:06
Expat Studios
Рет қаралды 3,1 М.
How I added LOTS of weapons to my game!
5:18
Bardent
Рет қаралды 58 М.
Weapon Inventory UI - FPS Game With Unity & Blender
15:34
Single Sapling Games
Рет қаралды 12 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
How to Equip Weapons and Items in Unity (Drag Drop, Inventory)
18:06
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН