Collect Items in Unity - Game Dev Tutorial

  Рет қаралды 29,934

Lost Relic Games

Lost Relic Games

Күн бұрын

Пікірлер: 83
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Thank you for your likes and comments, I truly appreciate them! Sample project files here: drive.google.com/file/d/1FB5hi4rsZmU03r2aVJ9N72rB1VdEFGfG/view?usp=sharing
@MarxyBasement
@MarxyBasement 4 жыл бұрын
Can you please make a video about changing and binding keys in new unity input system please like how to change and bind then ingame in controlls menu via scrip
@fahadansari6789
@fahadansari6789 4 жыл бұрын
Thanks
@calicow
@calicow 4 жыл бұрын
You really deserve more views. Even though I know how to do this (surprisingly, lol... I suspect that won't be true for some of the other tutorials) I really appreciate your teaching style. So many people just quickly type/past code without really explaining it, then that's the video. You've explained the code and have shown some common troubleshooting cases for why it might not work if something isn't done correctly, as well as details on how others might handle things differently for their games. Definitely subscribing. Looking forward to seeing more!
@rhythmandblues_alibi
@rhythmandblues_alibi 3 жыл бұрын
The way you explain things properly is great. I know how to do this from watching other tutorials but I didn't understand the difference between colliders and triggers, not really. Also great to see a fellow Aussie making great game dev content, cheers!
@bilal_rifki
@bilal_rifki 3 жыл бұрын
"Lost Relic" is the perfect name for your channel, since every video here is a Hidden Gem
@LostRelicGames
@LostRelicGames 3 жыл бұрын
Thank you TripleChoc!
@max2721
@max2721 3 жыл бұрын
I really like this video. It helped me a lot and you are just a really sympathetic person. Keep up the good work thx
@Quein922
@Quein922 4 жыл бұрын
After few videos I've decided to sub. This is some good content, I'm kind of puzzled though why there aren't more viewers around.
@garudakin_nz5110
@garudakin_nz5110 Жыл бұрын
BROOOOO!! this seriously helped me out a ton my dude. thanks for the great information :) just starting out and been at a wall for a long time. great video sir !
@LostRelicGames
@LostRelicGames Жыл бұрын
Nice! Glad to hear you are getting more confident, keep pushing, things get much easier
@lucasrubio7664
@lucasrubio7664 Жыл бұрын
Really nice tutorial. I really like how you talk and explain things, very helpful!
@Patricebrouh
@Patricebrouh 4 жыл бұрын
Wow, the explanation is clear and simple. That makes the video so great. We got to share it in some forums. Thanks
@CrepsDelic
@CrepsDelic 4 жыл бұрын
Just binging your Videos!! Great Material!! Discoverd you today, Missing the Destruktion Tutorial that should follow the melee Attack tutorial! Keep that great Work, I'm Sure adding your Game to my Steam wishlist!!
@waynewestlake8120
@waynewestlake8120 3 жыл бұрын
I know right? (on the binge watching) Just discovered his channel and it's been the biggest impediment to me actually working in Unity on my tutorials! But this is all such good knowledge I can justify that it's not just wasting time like cat videos!
@Aladato
@Aladato 4 жыл бұрын
15:25 you can use F2 to rename stuff in the whole solution, just place the cursor on it and press the button :)
@Scyther-ow8wy
@Scyther-ow8wy 3 жыл бұрын
Him: I don’t know what I was doing there Me: you know what you’re doing, lucky
@efaz6809
@efaz6809 4 жыл бұрын
This was a lot of help. THANKS A LOT!!! Definitely Subscribed :)
@shavais33
@shavais33 3 жыл бұрын
In Visual Studio, you can double click an identifier to select it, then hold down ctrl and hit R twice, then alter it and hit enter, and it will be renamed everywhere it is declared or referenced. If you rename a monobehaviour class that is the same name as a file, it'll ask you if you want to rename the file as well, and if you do that, then go back to Unity, Unity even updates references to that monobehaviour. Also, you can double click an identifier to select it, then hit F12 to go straight to its declaration, then maybe change its type or signature, for example, then hit ctrl- (control minus) to return to where you were. You can hit ctrl- multiple times and shift ctrl- multiple times to traverse back and forth across the list of last editing spots in your solution. What do you think of the idea of having an ObjectType script that you give to every object that can collide which has has a public typeId field? Maybe of an enum type called TypeId that is defined in that class? Then you have a generalized way of checking what object type something is in an OnTrigger or OnCollision function, and Visual Studio can help you remember what your object types are. I suppose if you had 100 object types or something, you might want sub categories so that your enum lists would be shorter. You could give ObjecType a typeCat field of a enum type called TypeCat, then have categorized enums and type id variables, like ShipType shipType and ArtifactType artifactType..
@sheepongrass
@sheepongrass 4 жыл бұрын
Thank you!!! You're one of the nicest teachers I've came across!!
@AdrianGonzalez-d1t
@AdrianGonzalez-d1t 3 ай бұрын
I know this is old but amazing video man thank you!
@karambultaif6248
@karambultaif6248 2 жыл бұрын
Best chanell ever 100/10
@franciscooliveira3768
@franciscooliveira3768 3 жыл бұрын
Perfect tutorial! Helped me a lot! And He looks like Keanu Reeves
@Jiggisghoul
@Jiggisghoul 3 ай бұрын
THANK YOU!! You helped me a lot! Thank you so much ❤❤❤
@pianoatthirty
@pianoatthirty 2 жыл бұрын
You're a great teacher. Would totally buy a 2d platform course from you if you ever decided to release one!
@josekarnikowski1711
@josekarnikowski1711 Жыл бұрын
Very good tutorial. Thanks!
@hunter7777
@hunter7777 4 жыл бұрын
Hello, This tutorial video was great...it helped me a lot, but the coding is very confusing to me, because I don't know how you know what to type in & where it should go in the coding. I hope there is an easier way to do what you did without all the coding. I'm not sure about this since I am a newbie, but my code doesn't look like yours at 4:45. I don't have the //State Management code & my codes doesnt have the same line numbers as yours. My coding also had the inventory already in it - I didn't have to type that line in at all. And everything worked just as you showed, even though my coding was a little different. Thank you, but I would like to know how to do the things you mentioned in the video - displaying the collectibles & the number that I have collected or a score.
@b8c_
@b8c_ 3 жыл бұрын
Thanks for the tut, mate.
@astohm5134
@astohm5134 3 жыл бұрын
Thanks, this video helped me a lot. Is there a part 2? I would really like to add a seperate counter for lives and coins in my UI
@moatasem444
@moatasem444 4 жыл бұрын
شكرا لك صديقي لكن لدي سؤال عندما أطبق عال النقود rigidnody2d وأفعل is trigger تقوم بالنزول أسفل الشاشة وإن أزلت تفعيل is trigger وطبقت تابع onCollisionEnter2d لا يقوم بجمع النقود بشكل جميل يعتبرها كجسم صلب ومن ثم يأخذها كل الاحترام
@kobaltsteel6418
@kobaltsteel6418 4 жыл бұрын
This was a great video; very useful!
@joaolucasalmeidapereira9526
@joaolucasalmeidapereira9526 4 жыл бұрын
Perfect tutorial it helped me a lot, thanks!!!
@cazterk
@cazterk 2 жыл бұрын
pretty good video, thank you, and you are a very good programmer😊
@AidanC47
@AidanC47 2 жыл бұрын
Thanks dude
@fredysoto8547
@fredysoto8547 3 жыл бұрын
I need This!! Thanks a Lot Again!!
@cursetin9833
@cursetin9833 3 жыл бұрын
Hi I have a question. This works well but when I change scene/levels and go back to the scene/level will the collectables It reappears. How do I permanently destroy it after I collect it only once?
@astohm5134
@astohm5134 3 жыл бұрын
Did you find a solution/tutorial for this?
@jurdendurden
@jurdendurden 4 жыл бұрын
Excellent video thanks for sharing!
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Thanks Andrew!
@monaimmatlaya5873
@monaimmatlaya5873 4 жыл бұрын
hey i want to know how i can interact with object and display a message before picking up an item
@tomasalexandre2150
@tomasalexandre2150 4 жыл бұрын
nice tutorial but i have a problem the OnTriggerEnter2D class doesnt appear has a class but has a normal name and i dont know why thx
@hrishikeshgarud7177
@hrishikeshgarud7177 4 жыл бұрын
Will you make multiplayer photon PUN tutorial?
@LeKikoojap
@LeKikoojap 3 жыл бұрын
great vid, simple
@JvMapote
@JvMapote 4 жыл бұрын
May i ask on how can i put the item count into a UI text? :(
@triarchdarlene3114
@triarchdarlene3114 Жыл бұрын
Sameee
@JvMapote
@JvMapote Жыл бұрын
@@triarchdarlene3114 You can do it, i did it before on my own :DD
@sunilpal2860
@sunilpal2860 4 жыл бұрын
You are simply awesome,I have become a fan of you John,hope someday I'll meet you & take a selfie wid you Mate.
@aarondelgado3421
@aarondelgado3421 4 жыл бұрын
Great video even though I already knew this stuff! By the way, what software(s) do you use to make tutorials?
@alvarosanchez8066
@alvarosanchez8066 4 жыл бұрын
Great video.
@gilbertdematera9658
@gilbertdematera9658 Жыл бұрын
thanks bro your amazing
@culiynl
@culiynl 4 жыл бұрын
Where is part 2?
@dudubarba08
@dudubarba08 4 жыл бұрын
Hi would you have a Tutorial to use XBox controller to Unity 2D Plataformer? I am trying to do my first prototype, but do not want to use only the keyboard to move and jump my player, instead I want to use my XBox COntroller. Tks man, keep working.
@LostRelicGames
@LostRelicGames 4 жыл бұрын
hey i dont have this specific tute just yet, but if you swing by the discord i can help you set up the default controller mapping
@otterfox488
@otterfox488 4 жыл бұрын
Hey my visual studios applications don't suggest things that are in unity Know how i can change that?
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Hey mate did you solve this? You need to link unity to visual studio in the unity preferences
@otterfox488
@otterfox488 4 жыл бұрын
Yes I did fix it, thanks for the quick reply though!
@deepaksivamani2269
@deepaksivamani2269 4 жыл бұрын
Thanks for the video and need to know if we have more than one coin how we can add to same itemtype name itself
@LostRelicGames
@LostRelicGames 4 жыл бұрын
I would recommend using a dictionary to store the item types. I do this in my own game. Will make a video on it soonish
@deepaksivamani2269
@deepaksivamani2269 4 жыл бұрын
@@LostRelicGames thanks
@justahuman4862
@justahuman4862 4 жыл бұрын
Thanks for the tutorial.
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Cheers David!
@ruliw8520
@ruliw8520 4 жыл бұрын
thx dude helped me a lot +1 sub
@snarpking
@snarpking 3 жыл бұрын
This tutorial is great and it I got it to mostly work, but for whatever reason it collects each item twice when you go into them. Any idea why that is? +1 sub for you dude
@akstis4183
@akstis4183 4 жыл бұрын
Great video, thank you for help
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Very welcome, thanks for the comment!
@tajislam8909
@tajislam8909 4 жыл бұрын
Thank you!
@quantranmanh7185
@quantranmanh7185 4 жыл бұрын
It's great. thank you!
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Thanks Quan!
@t.b.g158
@t.b.g158 2 жыл бұрын
Mate you look like Keanu Reeves...enouph reason to sub
@landlubber1143
@landlubber1143 4 жыл бұрын
I didn't know Keanu Reeves taught Unity
@lanayaassasin5373
@lanayaassasin5373 3 жыл бұрын
Hello, I am a new in programming. I followed all of your instruction, there is no error in my codes but it does not destroy the one that I am colliding. I'm using 2020.3.3f1, any tips and suggestion?
@raeesrashid4337
@raeesrashid4337 3 жыл бұрын
I have the same issue!!!
@StigDesign
@StigDesign 4 жыл бұрын
Awesome Video great detailed and explaned :D Next video maby how to subtract from the list eks: pressing H for using health Postion as long as you have potion in the list :D in my 3D fos game i use raycast for 2 kind of health, but i might be able to re-wright it to be added to a inventory list so its more like DukeNukem3D/doom(93)/WolfenStain3D :D
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Great idea, will definetly do a potion consume video soon and other inventory based tutes!
@StigDesign
@StigDesign 4 жыл бұрын
@@LostRelicGames Great :D
@harder9285
@harder9285 4 жыл бұрын
You're the best! Tysm
@junnieadriano5351
@junnieadriano5351 3 жыл бұрын
john wick also know how to make games huh
@NanduKrishnanNKSanandu
@NanduKrishnanNKSanandu 3 жыл бұрын
zlatan
@JoshRhoton
@JoshRhoton 4 жыл бұрын
Are you frying bacon in the background?? What's that annoying sound?
@LostRelicGames
@LostRelicGames 4 жыл бұрын
The natural phenomenon known as rain.
@JoshRhoton
@JoshRhoton 4 жыл бұрын
@@LostRelicGames dang, I got some eggs ready. Lol
@harder9285
@harder9285 4 жыл бұрын
You're the best! Tysm
@harder9285
@harder9285 4 жыл бұрын
You're the best! Tysm
Breaking up Code in Unity (Important game dev tips for beginners)
18:36
Lost Relic Games
Рет қаралды 128 М.
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
TryHackMe - Advent of Cyber 2024 - Day 23 Walkthrough
11:12
Tib3rius
Рет қаралды 4,9 М.
4 Ways to Code 2D Player Movement in Unity (You SHOULD know these!)
16:24
Lost Relic Games
Рет қаралды 172 М.
2D PATHFINDING - Enemy AI in Unity
23:13
Brackeys
Рет қаралды 827 М.
The Unity Drama FINALLY Ends... Or Does It?
8:44
Lost Relic Games
Рет қаралды 103 М.
Better Jumping in Unity With Four Lines of Code
12:47
Board To Bits Games
Рет қаралды 825 М.
Enemy AGRO AI System in Unity For Beginners ( 2D Game Dev Tutorial )
23:28
This Indie Dev's Game Launch Hack Won BIG TIME
8:34
Lost Relic Games
Рет қаралды 87 М.
TOUCH CONTROLS in Unity!
16:09
Brackeys
Рет қаралды 1,3 МЛН
Is this the best tool for 2D level design?
2:00
Vector Game Dev
Рет қаралды 6 М.
ANIMATE 2D CHARACTERS in Unity
15:41
Brackeys
Рет қаралды 993 М.
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН