Shinjingi
Shinjingi
  • 24
  • 149 052
New Input System in Unity - 2D Character Controller (2023)
The New Input System allows for an easy way to handle multiple devices. In this video we are going to make use of this package to allow control over our character with Keyboard and Gamepad.
________________RESOURCES_________________
GITHUB: github.com/Shinjingi/Unity2D-Platform-Character-Controller
_______________________________________________
__________________SOCIALS__________________
INSTAGRAM: shinjingi_
TWITTER: shinjingi_
DISCORD: discord.gg/DW4vxhwupf
_______________________________________________
Переглядів: 4 007

Відео

AI in Unity - 2D Character Controller (2023)
Переглядів 2,1 тис.Рік тому
Simple modular AI system made in Unity. To access the project for this video select the part4 branch on Github. RESOURCES GITHUB: github.com/Shinjingi/Unity2D-Platform-Character-Controller SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: discord.gg/DW4vxhwupf
Wall Jump in Unity - 2D Character Controller
Переглядів 9 тис.2 роки тому
In this UNITY tutorial we are going through one of the most used abilities in videogames, the WALL JUMP ability. We are going to divide it into different parts to better comprehend how it works. RESOURCES GITHUB: github.com/Shinjingi/Unity2D-Platform-Character-Controller SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: discord.gg/DW4vxhwupf
Improve your Jump in Unity - 2D Character Controller
Переглядів 11 тис.2 роки тому
The second part of the 2D Character Controller in Unity made last year. Improved with the ability to jump higher or lower depending on how long you press the jump button. Coyote Time to allow to jump even though not on a platform and Jump Buffer to intercept valid inputs. RESOURCES GITHUB: github.com/Shinjingi/Unity2D-Platform-Character-Controller SOCIALS INSTAGRAM: shinjingi_ TWI...
The ULTIMATE 2D Character CONTROLLER in UNITY
Переглядів 72 тис.3 роки тому
A 2D Character Controller in Unity, it allows different terrains detection, adjustable jump curve, the ability to make the character controllable by the Player, AI or any other external source and also allows for multiple air jumps. RESOURCES GITHUB: github.com/Shinjingi/Unity2D-Platform-Character-Controller SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: di...
Do this to IMPROVE your TILEMAPS in UNITY!
Переглядів 1,2 тис.3 роки тому
In this video i cover how to solve the Tilemap (Tearing/Seam) issue in 3 different ways! SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: discord.gg/DW4vxhwupf
Indie Game Devlog - DESTROYING the game HUD
Переглядів 1,2 тис.3 роки тому
HUD (Heads-up display) can be useful to show the player information about the character they are playing like the current health, but they can also be detrimental for immersion. So i started making my own health system that requires no HUD to display the current health to the player. SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: discord.gg/DW4vxhwupf
Indie Game Devlog - A Story in a Story
Переглядів 9963 роки тому
When creating a story, you might follow certain guidelines, like creating the protagonist and then the antagonist. Those two sides often collide and end up fighting each other in an eternal struggle between good and evil. But what happens when those two sides lie in the same person? SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: discord.gg/DW4vxhwupf
Indie Game Devlog - Creating a Compelling Style
Переглядів 11 тис.3 роки тому
In this Indie Game Devlog I will show you what i went through to finally create a compelling style for my game "Lost Temple". The game is a platformer that mixes together the style of both Warioland and Hollow Knight. SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi_ DISCORD: discord.gg/DW4vxhwupf
Dialogue Bubble in Unity - Yarn Spinner - Part 2 - Ep. 13
Переглядів 6 тис.3 роки тому
In this episode of the Night in the Woods in Unity series, we are going to finish the Dialogue Bubble, by removing the option buttons and make the bubble follow the player who's talking, using the functionalities provided by Yarn Spinner. RESOURCES ASSETS: www.dropbox.com/sh/4wdz0sxz2kunjjz/AAA2i7OoarUx0Ql1jn9dP_94a?dl=0 SOCIALS INSTAGRAM: shinjingi_ TWITTER: shinjingi...
Dialogue Bubble in Unity - Yarn Spinner - Part 1 - Ep. 12
Переглядів 12 тис.4 роки тому
In this twelfth episode of the Night in the Woods in Unity series, we are finally going to build the Dialogue System using Yarn Spinner. Creating the Speech Bubble that will contain the actual dialogue. RESOURCES ASSETS: www.dropbox.com/sh/ezldq9ph99tmmyd/AAA4cPTEcN1UmEFUpMRrTs_ma?dl=0 YARN EDITOR: yarnspinner.dev/docs/writing/yarn-editor/ YARN IMPORT URL: github.com/YarnSpinnerTool/YarnSpinner...
Scene Interactions in Unity - Ep. 11
Переглядів 1,2 тис.4 роки тому
In this eleventh episode of the Night in the Woods in Unity series, we are building the system that will allow us to talk with characters and interact with elements in the scene. FOLLOW ME ON INSTRAGRAM: shinjingi_official ASSETS LINK: www.dropbox.com/sh/ucsbc8fzf1bu0a2/AABYaeo08nsdZypXo4-s34Lqa?dl=0
One Way Collider in Unity - Ep. 10
Переглядів 6334 роки тому
In this tenth episode of the Night in the Woods in Unity series, we are going to make objects in the scene have a collider that activates only when approached in one way, making it a one way collider. FOLLOW ME ON INSTAGRAM: shinjingi_official
Camera Transitions in Unity - Ep. 9
Переглядів 1,7 тис.4 роки тому
In this ninth episode of the Night in the Woods in Unity series we are going to create Camera Transitions. They will give to the scene a much more dynamic look and improve the overall game feel when playing the game. FOLLOW ME ON INSTAGRAM: shinjingi_official
Post Processing Effects in Unity - Ep. 8
Переглядів 6874 роки тому
In this eighth episode of the Night in the Woods in Unity series, we are going to add some Post Processing effect to give the scene a more appealing look. To do so we are going to use the Bloom effect to make bright parts of the scene glow, the Chromatic Aberration to warp the borders and the Vignette effect to darken them. INSTAGRAM: shinjingi_official
Day/Night Cycle in Unity - Ep. 7
Переглядів 9024 роки тому
Day/Night Cycle in Unity - Ep. 7
Parallax Effect in Unity - Ep. 6
Переглядів 7804 роки тому
Parallax Effect in Unity - Ep. 6
Cinemachine Camera in Unity - Ep. 5
Переглядів 6984 роки тому
Cinemachine Camera in Unity - Ep. 5
Audio in Unity - Ep. 4
Переглядів 5624 роки тому
Audio in Unity - Ep. 4
Player in Unity - Ep. 3
Переглядів 1,4 тис.4 роки тому
Player in Unity - Ep. 3
Sprite Shape in Unity - Ep. 2
Переглядів 3,4 тис.4 роки тому
Sprite Shape in Unity - Ep. 2
Universal Render Pipeline in Unity - Ep. 1
Переглядів 1,9 тис.4 роки тому
Universal Render Pipeline in Unity - Ep. 1
Night in the Woods in Unity - Preview
Переглядів 3,7 тис.4 роки тому
Night in the Woods in Unity - Preview
Programmer Life (The Beginning)
Переглядів 3475 років тому
Programmer Life (The Beginning)

КОМЕНТАРІ

  • @Dragonaud
    @Dragonaud 3 місяці тому

    Thank you for this quality tutorial with clean and reusable code. I just started exploring gamedev (I have background in web/apps). There is plenty of tutorials about Unity and C#, but rarely someone spends time organizing code and making it resuable. Thats one of basic truths of programming: "less code is always more".

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

    Unfortunately this tutorial doesn't work today, but great job anyway!

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

      I do suggest you to get Yarn Spinner as a Unity package, download all the samples an have a look at them, especially the Text Bubble one. It will provide you an updated version of this that you can modify to your liking.

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

      @@Shinjingi I was doing exactly that, thank you!! <3

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

    Would it be possible to use this for commercial purposes without credits?

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

    i hope you will come back soon. your tutorials are the best thing i've ever seen.

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

    Now this is a master platform movement controller. Adjust here and there for your own prefs and it is just amazing, made my game more interactive and fun.

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

    I can't change the action type

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

    2 questions how can i make variable jump height, and how can i make it no acceleration or anything like that

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

    my charachter can't slide down the walls or jump from them. Did you use a tag that you put on the walls so the script knows you're on a wall?

  • @GuilhermeCampos-kl5gc
    @GuilhermeCampos-kl5gc 10 місяців тому

    amazing technique for IA, it look so simples and powerful in same time. :)

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

    Really great tutorial. A game I'm working on actually uses similar methods and due to this I wanted to ask if you found any good way to add slope handling? Most of the tutorials are designed around setting a velocity unlike this method which uses acceleration. Any information would be really helpful. Thank you.

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

    Nice video, but my AIController isnt appearing when try to create it through input controller for the ScriptibleObjects folder, any help? 5:20

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

    Does anyone know why I didn't get the red squiggly line and the implement option like in 4:08?

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

    hi im running into problems with the Move Script its saying that the name Controller couldnt be found. any ideas thanks in advance

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

      Hi, i suggest to download the project from Github and have a look at what's different on your project, this is the fastest way to solve your issue.

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

    What is the theme you are using in Visuasl Studio in this video? It's really good.

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

      Just the Dark one, no changes done.

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

      @@Shinjingi "public class" and "void Start" are pink. But they are not in normal Dark theme. It looks beutiful. But if you don't know It's okay :)

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

    Hello! Thank you for this great video, I am trying to follow along and have hit a snag. I noticed that in the jump script there is a new line called "private Controller controller;" but unity tells me that Controller is not valid. I am trying to see between this video and the improved jump video where this controller gets implemented and what it could be, is it called something else now?

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

    Hello! Thank you for this great video, I am trying to follow along and have hit a snag. I noticed that in the jump script there is a new line called "private Controller controller;" but unity tells me that Controller is not valid. I am trying to see between this video and the improved jump video where this controller gets implemented and what it could be, is it called something else now?

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

    it work in any unity editor

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

    for some reason the my player is not jumping. Can anyone help me find what is wrong about this?

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

    I dont understand where the _controller variable came from it doesn't seen to pop up anywhere

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

    I truly admire the cleanliness of how this code is laid out and how so many components are built to be used by a variety of entities. Well done, and thank you!

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

    Great tutorial series! I'm learning a lot with it. Just one thing, in the end, when you showed the IA logic to jump to other platforms, the complete code doesn't appear on screen, and I also checked on GitHub and isn't there. Could you show it on the next lesson, or send it as a reply on this comment? Keep with the good work!

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

    Your character controller is so fun to play with! Thanks for the awesome videos, and thanks for explaining each line of code's function and how it works alongside the rest of the code!!! You've got a new subscriber

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

      Sorry but do you have any idea where the controller script came from I can't make the variable jump because he doesn't inform us about the controller script

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

      @@worthlessfox ua-cam.com/video/lcw6nuc2uaU/v-deo.html

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

    How to flip my character when wall bouncing. I tried but after I flip my character the animation is reversed. Please help

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

    Hey! I only have 1 question that needs to be answer ASAP because it's my first game and I'm participating in a 3 days game jam. How can I flip character looking direction like if the character walks to the left in my 2D he's eyes and body are looking to the left and not to the right. Sorry by the inconvenience but I don't have lot of time to try more new things, I learned pixel art and lots of things about coding. Thanks! Btw It's the end line of the 2nd day(I''m participating in the Icoso Jam), if you want I can send you the results of the game when I publish it, I'm in the Discord server.

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

      Whenever you change direction in the Move and WallJump script, set the transform.localScale.x to -1 or 1 depending on the direction you want to face. Good luck!

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

      @@Shinjingi Thanks, but sorry I know I'm a novice and probably don't explain well, I only know the basics I wanted to ask how can I know what key is being pressed by the user? Like A, d, R arrow, L arrow. Sorry by the inconvenience and have a nice day!

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

      @@Shinjingi I know I'm being very annoying but I promise that this is the last question. When I made the wall jump the player slide in every platform, how can I fix that? I'm sleeping so bad that I can't think lol.

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

    Hey! It's a nice controller and a well explained video, what more? You got a new sub. Thanks! It's the controller I was looking for.

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

    This is so old!!!

  • @НиколайБелковский-ф2н

    Hi! A great lesson, will there be a guide on how to make a dash for this character controller?

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

      Maybe, but not anytime soon...

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

    He's back with more greatness

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

    Great tutorial, thank you

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

    Great Tutorial, Can you make a tutorial on key rebinding with new inout system...

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

    Is this a continuation to your previous character controller video? Or is it just an update, to use the input system? A Completely new Controller? You video on the 2D character controller helped a lot! Looking forward for this new video!

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

      It's a continuation of the 2D Character Controller series, in which we will transition to the new Input System to handle multiple devices. Hope you are going to like it!

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

    Hi! I was wondering if the type of pipeline I need to create has a different name now? When I go to create and then rendering there is no option for a Universal Render Pipeline or a Pipeline Asset. Can you help? Thank you.

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

      Please don't follow this video, it's 3 years old and things have changed both in Unity and Yarn Spinner!

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

      @@Shinjingi Oh ok, thank you

  • @Vexed-dev
    @Vexed-dev Рік тому

    omg so helpful best tutorial ever im subbing :)

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

    Sincerely great system, it felt good from the get go after I managed to convert it to the "new input system", sadly I couldn't get this part to work but still nice series. PS: Would you do something for moving at an angles maybe? I still can't get that to work even using your files.

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

      Thank you! I'm going to release the integration with the New Input System in a few days. There are a lot of things that could be improved but i want to let this series end sometime in the near future.

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

    I have a question regarding your jump script. If the player was to tap the jump key rather than holding, am I right in thinking that the player will jump but the _upwardMovementMultiplier wont be applied to the gravity scale? probably a dumb question but why do we want more gravity when jump is held and the velocity.y is > 0 for the _upwardMovementMultiplier. I get the _downwardMovementMultiplier increasing gravity but I just dont get the _upwardMovementMultiplier. Im asking because if I tap the jump button, the player goes higher than if I hold the jump button because gravity remains less while going up if I tap it. hopefuly that makes sense. also, I've subscribed because this channel is a hidden gem!

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

      Hi, that's actually a bug i need to fix. I wanted to do it in the upcoming episode but it was too long and so i decided to split them.

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

    Amazing tutorial. I’m just doubting the ground check part because it doesnt work on slopes and i was wandering if it wouldnt be easier to check if the game object had a certain tag or layer? If theres a better solution could you make a tutorial on that?

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

      To both, the answer is yes. I'm going to release another video in 2 weeks which covers converting the controller to the new input system. After that i will cover the ground issue.

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

      @@Shinjingi thank you!

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

    Changing the text in the Text object is not changing the side of the parent bubble

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

    So why exactly did you make the InputController a scriptableObject (instead of like a static class or none at all) ? Does not make much sense in a vacume

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

    What variable did you change to get the _controller variable? I just started and I don't have that variable, even knowing that you added underscores before most of them. I tried not using the _controller variable at all and it didn't work. Thanks for any help!

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

      It's what he titled the InputController in his Jump and Move scripts.

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

    for some reason, it detects it as grounded when i touch a wall

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

    So ive found this to be the absolute best character controller yet, only issue ive had is using tilemap colliders. Using Box Collider 2d works perfectly, but when i apply a Tilemap collider, it seems to catch on the ground or while running it will stutter and play my falling animation for a frame. I then added a composite collider and set the tile map to "Use by composite" and it fixes the animation stutter, but it makes jumping while moving no longer function, to jump you have to stop completely. Ive checked common solutions online, like making sure the player and tile map are on the same layer, and even trying the jump controls in update instead of fixedupdate. Nothing helped and I'm at a stand still, and individually placing box colliders for each platform is possible, but would be a nightmare, any fix for this issue?

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

      This issue can be solved by changing the script that retrieves ground data to use raycasts instead of the actual method of detection. You only need to change that class, this is the advantage of having a modular approach.

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

    Great controller, Can you add slopes handling?

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

      I can point you out to an amazing resource to do just what you need. Search CatLikeCoding Movement and have a look at it. It should be in the Movement topic Physics section.

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

      @@Shinjingi That's indeed an amazing resource! Thank you!

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

    I'm probably the biggest Noob in here and It's making me feel disheartened as I'd love to make my own game :( Not even a minute in and I'm stuck. I created a material, called it "Trail" then I go to change the colour and for me there is no colour option whatsoever. Apparently it works differently if I am using URP but how is the question. How am I the only one in these comments that cant get past the first minute without getting stuck. Grrr...

  • @7ElevenKevinNG
    @7ElevenKevinNG Рік тому

    It won't show up

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

    You're an amazing guide with a useful script structure that I would like to take guidance from for my first game. However, I'm brand new to game dev, working on a solo project in my free time, coming from an art background. I followed your guide but can't seem to figure out how to implement animating my sprites with this player controller. I've tried several things including making an animation manager script but I'm such a beginner I can't wrap my head around everything involved. Any advice on how to move forward with my animations?

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

      Hi, if you are just starting out i would recommend to follow CodeMonkey 10 hours long video, it will get you started in the right way. This series is meant to give a different approach on how to develop a character controller that works both for the player and the enemies.

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

    How do you add animations?

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

    How could I remove the inertia from the character

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

    This tutorial series was so help full thank you! One question, how would you go about making a dash? (like in hollow knight for example)

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

    Has anyone figured out how to implement this using the new Input System?

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

      thats what Im tring to figure out. I dont think hes responding to comments anymore :(

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

      @@Ddotkay Well, our prayers have been answered. He released a video on the new input system 2 months ago! 😅

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

    This is an amazing character controller! One question though, depending on when i press jump the character will have a bigger or smaller second jump. is there a way to make it so its always the same jump?

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

      It should be solved in later videos of the series, basically what is happening is the following: If you are going down let's say at a speed of -3f and the jumpSpeed it's 6f the currentSpeed+jumpSpeed=3f instead of the 6f it should be. So to solve this issue you need to make sure that even when going down you set the speed of the jump to the proper value. This can be achieved in different ways, I'll leave that part to you

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

      @@Shinjingi Oh i didnt know this was a video series. Thank you for the help!

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

      @@irishmalteser296 It's only a series if you want to, if not take what you need and improve on it, good luck!

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

      @@Shinjingi Will do. Thank you for the help!