- Видео 63
- Просмотров 213 993
Game Code Library
Великобритания
Добавлен 21 апр 2023
Tutorials for modular features and simple games. Add into your existing games, or create a new game together!
You can get access to all the code files used in these videos from my Patreon:
www.patreon.com/GameCodeLibrary
You can get access to all the code files used in these videos from my Patreon:
www.patreon.com/GameCodeLibrary
Drag and Drop Inventory UI - Top Down Unity 2D #8
FREE SCRIPT for our Drag Handler below :-)
Drag and drop, expandable and simple inventory's are popular in 2D games. In this video we'll get the UI set up for our inventory!
We'll be using the menu UI we made in this video: ruclips.net/video/liba3xGI4gM/видео.html
FREE SCRIPT: www.patreon.com/posts/free-script-drag-113539544
Full Package and Code: www.patreon.com/posts/drag-and-drop-ui-113539243
Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP
Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack
All source code for all videos I have made and will make in the future can be found on my Patreon:
www.patreon.com/GameCodeLibrary
If you have any suggestions, feedback or questions, ...
Drag and drop, expandable and simple inventory's are popular in 2D games. In this video we'll get the UI set up for our inventory!
We'll be using the menu UI we made in this video: ruclips.net/video/liba3xGI4gM/видео.html
FREE SCRIPT: www.patreon.com/posts/free-script-drag-113539544
Full Package and Code: www.patreon.com/posts/drag-and-drop-ui-113539243
Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP
Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack
All source code for all videos I have made and will make in the future can be found on my Patreon:
www.patreon.com/GameCodeLibrary
If you have any suggestions, feedback or questions, ...
Просмотров: 947
Видео
EASY Save and Load to JSON - Top Down Unity 2D #7
Просмотров 9142 месяца назад
You can save and load any data you need for your game to JSON with this easy script set! I use this method for all my Unity games - it's so clean, easy and simple! Like all the code we write ;-) We'll be adding a save button to our settings screen and loading on start of our game. Full Package: www.patreon.com/GameCodeLibrary Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Playl...
Menu with Tabs UI - Top Down Unity 2D #6
Просмотров 1 тыс.2 месяца назад
Let's add the UI in for our games menu system and add tab functionality! We'll be able to add as many tabs as we like to the top and switch between the corresponding pages. Then we'll be ready for our inventory and settings that we'll add in future videos - as well as any others you may want to add! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/m...
Map Transitions by Waypoints - Top Down Unity 2D #5
Просмотров 9113 месяца назад
When walking to the edge of our map, we'll set the map to move to the next area! We'll do this with adding collectible waypoints to our map grid so we can control all map movements. Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/triggered-map-2d-110520888 Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP All source code for all video...
Player Tracking and Camera Bounds - Top Down Unity 2D #4
Просмотров 1,4 тыс.3 месяца назад
Let's get our camera following our player and also staying within the bounds we set! So the camera will follow our player until hitting the sides of our boundary collision and stop. Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/player-tracking-109790549 Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP All source code for all videos...
PERFECT Tilemap Sorting Layers - Top Down Unity 2D #3
Просмотров 4,1 тыс.5 месяцев назад
Let's plan out the layers for our top down game! We'll be adding in: Walk in front, Collision, Walk behind, and more! We'll look at collisions on tilemaps and using sorting layers to give our game an amazing sense of depth! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Old Rule Tile Vid: ruclips.net/video/8UctaO5DwUE/видео.html Full Package: www.patreon.com/posts/106861111?pr=true ...
Idle and Walking Player Animations - Top Down Unity 2D #2
Просмотров 2,3 тыс.5 месяцев назад
Using blend trees and the animation controller, this beginner friendly and full tutorial on Animations will give you everything you need! We'll set up our players idle and walking animations to get him moving in a FANCY way. Movement Video: ruclips.net/video/DQY62meLVCk/видео.html Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/movement-with-2d-104...
Player Movement with Unity Input System - Top Down Unity 2D #1
Просмотров 2,2 тыс.5 месяцев назад
Beginner friendly and full tutorial on Player Movement using Unity's Input System! We'll also set up a default sprite for our player using the asset pack below. And look into serialized fields! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Package: www.patreon.com/posts/movement-with-2d-104791237 Free Script: www.patreon.com/posts/free-script-with-104791310 Full Playlist: rucl...
Let's Make a Top Down Game! - Unity 2D #0
Просмотров 3,3 тыс.6 месяцев назад
Beginner friendly and any genre!! In this vid we'll plan out top down base template! And create our Unity project together. The idea will be to make this base template to then use and branch off to other game genres! Super exciting! Sprite sheet: pixel-boy.itch.io/ninja-adventure-asset-pack Full Playlist: ruclips.net/p/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP All source code for all videos I have mad...
EASY Object Pooling - Unity Game Tutorial
Просмотров 8006 месяцев назад
This EASY video will show you object pooling and also make a mini space shooter game! We'll only need one script to get object pooling going - then we'll look at how we can get objects from our pools! Object pooling greatly improves performance of our games - so is an important pattern to learn! You can also grab the WHOLE package for this tutorial and mini shooter for only $2.99 on itch: gamec...
COMPLETE Platformer Tutorial! Over 40 Features - Unity 2D 2024
Просмотров 7 тыс.7 месяцев назад
By the end of this video you'll have all the skills and features you need to make an amazing 2d platformer. BUY THE COMPLETE GAME TEMPLATE NOW!!! gamecodelibrary.itch.io/2d-platformer-template www.patreon.com/GameCodeLibrary/shop All source code for all videos I have made and will make in the future can be found on my Patreon: www.patreon.com/collection/14573?view=expanded Check out the full pl...
Infinite Parallax Scrolling Background - Unity 2D Complete Tutorial
Просмотров 10 тыс.7 месяцев назад
We're going to add parallax to our 2D scene's background layers, then make it endlessly scroll! This is a complete tutorial - from adding player, setting up the camera - to a beautifully scrolling background! Basically make a whole endless runner / side scroller in 7 minutes :o FREE Player Package: www.patreon.com/posts/102090173 FULL Parallax Package: www.patreon.com/posts/102091009 Background...
Add 2D Lighting to Existing Project - Unity 2D
Просмотров 1,2 тыс.7 месяцев назад
Add 2D Lighting to Existing Project - Unity 2D
Lighting in 2D Games! URP Template Overview - Unity 2D
Просмотров 4397 месяцев назад
Lighting in 2D Games! URP Template Overview - Unity 2D
Start Menu - 2D Platformer Unity #28
Просмотров 9558 месяцев назад
Start Menu - 2D Platformer Unity #28
Background Music Manager - 2D Platformer Unity #27
Просмотров 5248 месяцев назад
Background Music Manager - 2D Platformer Unity #27
Sound Effect Manager - 2D Platformer Unity #26
Просмотров 6069 месяцев назад
Sound Effect Manager - 2D Platformer Unity #26
Speed Boost Item - 2D Platformer Unity #25
Просмотров 5979 месяцев назад
Speed Boost Item - 2D Platformer Unity #25
Hidden / Secret Areas - 2D Platformer Unity #24
Просмотров 6069 месяцев назад
Hidden / Secret Areas - 2D Platformer Unity #24
Spike Traps and Bounce Traps - 2D Platformer Unity #23
Просмотров 70010 месяцев назад
Spike Traps and Bounce Traps - 2D Platformer Unity #23
Falling Platforms - 2D Platformer Unity #22
Просмотров 60710 месяцев назад
Falling Platforms - 2D Platformer Unity #22
Moving Platforms - 2D Platformer Unity #21
Просмотров 1,3 тыс.10 месяцев назад
Moving Platforms - 2D Platformer Unity #21
Drop Down Through Platforms - 2D Platformer Unity #20
Просмотров 73410 месяцев назад
Drop Down Through Platforms - 2D Platformer Unity #20
BEST WAY to Dash through Enemies - 2D Platformer Unity #19
Просмотров 1,2 тыс.11 месяцев назад
BEST WAY to Dash through Enemies - 2D Platformer Unity #19
Healing with Health Items - 2D Platformer Unity #18
Просмотров 68411 месяцев назад
Healing with Health Items - 2D Platformer Unity #18
Enemy Drop Items on % - 2D Platformer Unity #17
Просмотров 99511 месяцев назад
Enemy Drop Items on % - 2D Platformer Unity #17
Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16
Просмотров 88411 месяцев назад
Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16
Game Over Screen and Retry Button - 2D Platformer Unity #15
Просмотров 1,2 тыс.Год назад
Game Over Screen and Retry Button - 2D Platformer Unity #15
Player Health and On Hit Effect - 2D Platformer Unity #14
Просмотров 1,4 тыс.Год назад
Player Health and On Hit Effect - 2D Platformer Unity #14
Advanced Object Spawning on Tilemap Platforms - 2D Platformer Unity #13
Просмотров 1,4 тыс.Год назад
Advanced Object Spawning on Tilemap Platforms - 2D Platformer Unity #13
how can we fix the type or namespace tmp could not be found error
This is great! :D
So glad you enjoyed!!
it was sooo simple and easy other youtubers make it look soo hard thanks a lot :)
Right!! I try to make everything as simple and quick as possible. Think I just put more effort into editing videos so I don’t waste your time too 😉
Is this 3 hour video contains all that 40 features ? Is this a full fledge tutorial? Really?
Yep that’s right!! It’s a compilation of all my previous videos in the series. I cut my videos to pure information, no fluff 😈
Hi really good video thank you so much, but I have a question my character is flipping when I try to jump on a corner platform.Can you guys help me ?
INSANE
Perfect Tutorial you explained everything!!!
So glad you enjoyed!! :-)
Thanks For The Certificate :)
You earned it 😌
short and sweet. wonderful
Thank you! 😊
Holy smokes, that's amazing :OO
Thanks! 😄
As a korean, Even though I wasn't good at English, your videos were so helpful !(+Your voice is so pretty that It was like listening to ASMR) Thank you so much~
I’m so glad you enjoyed!! I try to speak as clearly as I can 🙏😊
Great tutorial! The calm, deliberate delivery and walk though is top notch and makes it very easy to follow along. I've run into 2 problems and that is Light-tap jump not working with isgrounded, and the wire box not being drawn, which makes it hard for me to configure its size.
I want to know why I don't have the confiner, I only have Confiner2D in unity
Thank you for creating this series. You've got a knack for this. The video has clear instruction while leaving space to experiment a bit. Great inclusion of debugging as well.
Thank you I'm glad you enjoyed! I try to make everything as open ended as possible so you can build as much as you like upon it :')
It looks really weird when it snaps back how do we stop the snapping back?🥹
When the game is playing you shouldn't be able to see it snapping!! Make sure your images at least the width of the camera :-)
@ what if I‘m using a perspective camera?😅
There is a problem i can't jump after i put the animation codes i tried pressing space but it didnt jump what should I do? Also good tutorial!
As I can’t see your code all I can suggest is to watch the video and check you’ve done all the steps! Or check against the free code I gave :-) Everything to get it working is in the video!
cannot implicitly convert type int to TMPro.TMP_text what would be a solution?
When passing in your int, add ToString(); to the end of the int variable
I find it odd that I searched RUclips for content like this playlist and your videos were not included in the list even though the title of this video was the same as my search keywords. Your video showed up in my recommendations weeks after I stopped searching. I know it's been more than a month since your stopped making vids but I hope you come back.
Hey yeah the algorithm isn't much a fan of my videos yet!! :-P I have the next video mostly ready - just need to perfect the scripts so I get it right! Been busy at work but will hopefully have time around Christmas to get back on the consistent posting. Thank you for checking my stuff out :-)
@GameCodeLibrary thanks for making the vids.
Your voice is so soothing, Love the tutorials!
Glad you enjoy :-) Thank you!!
Great video. When is the next one coming?
Hey! I'm glad you enjoyed it! I'm slowly working on it but have been super busy at my job - so I don't have a timeline for it at the moment! Once things settle down near Christmas I hope to have more consistent uploads again. Sorry for the wait!
Ur tutorial is amazing and so far the only one that worked out for me but I have a slight issue the background image isn't created outside of the screen like I can see the new asset being created do u know how I can fix that?
Cant express how helpful this video is.
So happy to help!! :-)
Occupation : frog
🐸💯
hey i know its a bit late but can you show a tutorial about double jump animations based on this , like i can make the double jump animations for it already but in the animator , the animations transition connect , i don't know how to connect to make a double jump animation after jump. Can you make a tutorial on this please , based on this game too. thanks a lot
This is such a good series, short and easy to follow. And also perfect to use this to write my own unity handy notebook. Thank you for taking the time for making this kind of videos
Thank you I’m so glad you’re enjoying it!! :-)
Great concise tutorial, looking forward to continuing with the series!
So glad you enjoyed! :-)
In Case someone has the same problem with is line of Code "horizontalMovement = context.ReadValue<Vector2>().x;" . I had an Error under/with the Vector 2 => In the Top of the Script you need to remove the line "using System.Numerics;" // And also in Unity 6.0 velocity is change to linearVelocity
I cannot wait for your next video; your tutorials are so helpful and I am currently making my own top-down game with the help of your videos!
So glad you’re enjoying them! Sorry for the wait on the next video, been so busy 🥲🙏
your voice 😭😍, I bumped and sub into your channel because I was looking for a tutorial for parallaxFX
Thank you so glad I could help out 🙏
for me ask why i cant use it in 2022 version Debug.Log(maincamera.ScreenToWorldPoint(Input.mousePosition));, anyone can help me pls thank you
thanks
great content
This has helped me immensely, thank you so much! I used to do layers a bit differently but this method makes more sense. It also avoids weird overlaps.
So glad I could help!! There’s lot of ways to make games and do every aspect of it, I just try and share what I find easiest 🙏
@@GameCodeLibrary In our case we're working on a top-down game that relies heavily on projected lighting coming from the character's mounted flashlight. Your video was the perfect stepping stone to helping us better understand how to do "smoke and mirrors" lighting effects in 2D with different layers.
@@Cobalt_Capacitor That sounds really cool! Faking lighting can work so much better for 2d games since it gives such a clean effect - but I do have a video on Unity's 2d lighting system if you ever want to try that out too!! Good luck with your game it sounds fun
Hi! How do I add a fire animation to my game?
🌲
I've been looking for some help with the "new" input system, this is great, thank you!
Glad you enjoyed!! :-)
very helpful, thank you
You're welcome! I’m glad you enjoyed :-)
WallSlide flip()?
i think i'm in love with you but that might change depending on if this tutorial helps me
OMG THANK YOU, i was going insane, you are the first one that clearly explained the pixel per Unit, i was wondering why it looks so bad and no other tutorial explained it like you did, thank youuuu <3333333333333
Glad I could help! 🙏😌
How do I do that with five different upper tiles???????
I have a video here about layering tilemaps: ruclips.net/video/UId0mwanBZg/видео.html
I did the player input and now my character walks automatically without pressing any keys. Gotta find what I did wrong :/
Found the problem, it was very simple :)
Nice well done!! 😝🙏
Very helpful video, however I have a problem when I move my character and the camera is stationary, the character looks very blurry and hard to look at. Does anyone know how to fix this?
Damn I'm such a noob. Everything looks different on my end and this tutorial is too fast to follow. I also don't have the same settings and options. Is she using some old version of Unity?
I have a playlist where I go a lil slower and go through the whole creation of a platformer game here if you're interested! It's slightly newer too so may have similar options that you see. ruclips.net/p/PLaaFfzxy_80EWnrTHyUkkIy6mJrhwGYN0 I also have a top down series I'm starting and the animation video for that one is much much slower than the rest! ruclips.net/video/82U4ToJU-28/видео.html
Hi! I’m having a glitch where if jump is pressed before hitting the ground, when the key is released once on the ground, the animation plays
Never mind, solved the issue
How would you handle this scenario: Player can walk on top of a bridge, but also underneath it?
Hello! I love this video so far! I am having trouble though at 5:52 , there is no option to press Move :( Do you have any ideas of what I did wrong?
Sorry for the late reply!!! The only thing I can think of is at 4:40 I import the using UnityEngine.InputSystem; Here's the full script from my video :') using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; public class PlayerMovement : MonoBehaviour { [SerializeField] private float moveSpeed = 5f; private Rigidbody2D rb; private Vector2 moveInput; // Start is called before the first frame update void Start() { rb = GetComponent<Rigidbody2D>(); } // Update is called once per frame void Update() { rb.velocity = moveInput * moveSpeed; } public void Move(InputAction.CallbackContext context) { moveInput = context.ReadValue<Vector2>(); } } Otherwise perhaps Unity Input System didn't download properly! perhaps try redownloading and opening and closing Unity. Hope you're well!
Did you make sure the move function is set to public?
Ya yeah ya yeah! Ooohhhh Yeah!
Hey, I'm new to game development, and I love your videos! I downloaded the script from your Patreon, but my enemy is still not moving or chasing me. I dragged my player into the player Transform field and chose the correct Ground layer. I just can't seem to get the enemy moving. Thank you!
Hello, i followed this tutorial and the movement works awesome in my game, however, when i build the game to test the game out on my pc (with the .exe ) the controls don't work, nothing happens, there's no error in the console or anything, right now i have the same exact code as you at the end of #2 of this video, so i'm not sure what could be the issue, thanks :)