whats the strategy to add amount on the individual items?
@brianparkhurst535213 күн бұрын
Error with your Circle material, seems to be a particle shader error. Cant find the shader you are using.
@bibliographu17 күн бұрын
This is what we need about a tutorial about leveling system, Simple and very effective. Great video.
@nordost8Ай бұрын
Hello, In this code, I've made adjustments to ensure the character looks in the direction of movement rather than always facing the target destination. This change helps avoid unnatural movement when the character is navigating around obstacles. Here's the updated code : void FaceTarget() { // Get the agent's current velocity Vector3 velocity = agent.velocity; // If the agent is moving if (velocity.magnitude > 0.1f) { // Normalize the movement direction and create a look rotation Vector3 direction = velocity.normalized; Quaternion lookRotation = Quaternion.LookRotation(new Vector3(direction.x, 0, direction.z)); // Apply a smooth rotation to face the movement direction transform.rotation = Quaternion.Slerp(transform.rotation, lookRotation, Time.deltaTime * lookRotationSpeed); } }
@ahh170Ай бұрын
this guy is goated. - not asking for credits - free to use and well-prepared assets i will make sure to mention Pogle each time someone talks to me about my melee stuff!
@OathkeeprrАй бұрын
if anyone is having an issue with the character's FaceTarget snapping after they stop moving. simply check to see if the velocity is zero. and if it is just return. void FaceTarget() { if (agent.velocity == Vector3.zero) return; Vector3 direction = (agent.destination - transform.position).normalized; Quaternion lookRotation = Quaternion.LookRotation(new Vector3(direction.x, 0, direction.z)); transform.rotation = Quaternion.Slerp(transform.rotation, lookRotation, Time.deltaTime * lookRotationSpeed); }
@gh_st32Ай бұрын
I have a simple problem, when I click the item to hold it, the image of the item dissapears but when I click on other / same inventory field, it recover its image
@phlovejoy2 ай бұрын
If Input Actions does not appear on your create list, return to package manager and download Input System from Unity Registry.
@worldmotivation47322 ай бұрын
i cant open the project, it says This project is not valid
@florenscherry52382 ай бұрын
writes an error. I can’t insert your project from Github into Unity
@TheButteryGorilla2 ай бұрын
ive used a character from the pack that you used but i cant find the avarat for it for the animation controller @PogleDev
@MinaJEP2 ай бұрын
video tao bom que começa ja com o cara abrindo projeto ja pornto com o dowload nao abrindo como projeto na uinty
@belkmaster2 ай бұрын
This was a fantastic tutorial on how to accomplish the pixel look. Exactly what I needed to find. Thank you!
@shinosmodspot42673 ай бұрын
i cant figure any thing out would u help me pog?
@Crystal_guy3 ай бұрын
❤❤❤❤❤❤❤❤❤❤ tnx for the idea
@Stadny3 ай бұрын
Worked, but for some reason, now I keep getting this bug(s): Error 1: NullReferenceException: Object reference not set to an instance of an object PlayerController.ClickToMove () (at Assets/Scripts/PlayerController.cs:40) PlayerController.<AssignInputs>b__9_0 (UnityEngine.InputSystem.InputAction+CallbackContext ctx) (at Assets/Scripts/PlayerController.cs:34) UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.CallbackArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at ./Library/PackageCache/[email protected]/InputSystem/Utilities/DelegateHelpers.cs:46) UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) Error 2: NullReferenceException while executing 'performed' callbacks of 'Main/Move[/Mouse/leftButton]' UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)
@ByteVaultStudio4 ай бұрын
That was just what I was looking for, thanks! I find blender a little difficult and most tutorials are skipping steps so the viewers get lost at times, me included. If possible, add a key-press view to blender. Keep up the good work! 😄
@GreenuniverseEuro4 ай бұрын
Can I use avatar mask here to make sure that walk animation works while attacking?
@GreenuniverseEuro4 ай бұрын
no matter what I click or do ClickToMove(); never gets called??
@silvanolenti29504 ай бұрын
Great vid! Note: You can replace the if-statement (02:00) by a while loop to handle multiple level ups at once.
@lmao014 ай бұрын
What I needed. Keep up the good work!
@reffer3604 ай бұрын
Thank you for this , can you do a follow up video to save and recall conversations?
@user-qo6wi2ll8h4 ай бұрын
Please, master! More lessons in this serial
@metamorf92474 ай бұрын
It's probably too late to give advice, but for those who stumble upon this video, I recommend turning on DESTROY in the effect tab in "Stop actions" so that the effects are removed
@drashantpombale17 күн бұрын
Legend
@vastril53914 ай бұрын
Hi I have a problem where the character does reach the destination, but lags behind and teleports as the animation happens. It does arrive yes but it does that where it is buggy and laggy. It does work perfectly though when clicking the area and it arriving there.
@Nathan-qe3tv4 ай бұрын
Please next part 👏
@AsherKadmiel5 ай бұрын
at first it wasn't working but then i realized that i had to select the default layer for the player controller script, Thanks !
@Ogamer3205 ай бұрын
if i have a project that your camera is stuck with your cursor then how do i make it unstuck so i can access the inventory? (great tutorial btw)
@M.DaniyalAnsari13 күн бұрын
simply add a code line that when you press the inventory button the camera movement is disabled and when someone exits the inventory it reopens also you'd have to mabey add a boolean like the true false and an if statement like if bolean false then dont move or any way it fits into your code
@Ogamer32013 күн бұрын
@@M.DaniyalAnsari thanks for your suggestion but i found a solutions wich was CursorLockMode.None
@dedz5 ай бұрын
Really nice tutorial. I am adapting what i already had to your tutorial and its working good!
@ukaszgrabski28115 ай бұрын
Add remaining distance checking in FaceTarget so it does not rotate like an idiot in the end :P
@sylwestertadyniewicz58766 ай бұрын
lifting objects from the ground would go a long way in this tutorial :) using this inventory
@ecenjoyer6 ай бұрын
Doing this on raycast is a terrible approach, BoxCast is much better following the weapon in the animation, now you do "empty" swings and they doesn't matter
@thewaffle3d4006 ай бұрын
Any suggestions on using BoxCast? I'm working on doing a melee combat system and can't seem to find a good tutorial/tips to follow
@YoutuberUser0022 ай бұрын
Wait what? Cus I literally just added a knife melee weapon in my game and it's using a raycast and I'd like something better but no idea what but this sounds promising
@Lodreus6 ай бұрын
I'm getting error on input.Main.Move.performed += ctx => ClickToMove(); "Severity Code Description Project File Line Suppression State Error CS1061 'CustomActions.MainActions' does not contain a definition for 'Move' and no accessible extension method 'Move' accepting a first argument of type 'CustomActions.MainActions' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharp
@argi41416 ай бұрын
now make it burn with some nice stylized fire
@arsentoplak26356 ай бұрын
Please continue the series, it is really amazing and I learn so much! Subbed for this amazing series.
@indiedreamsmedia22357 ай бұрын
Love to see a easy to follow Blender tutorial like this, thanks!
@vladeus53907 ай бұрын
Thank you!
@Twisle7 ай бұрын
great video !
@flarra7 ай бұрын
How would you equip inventory items (for example a chestplate)
@nunusvenus79457 ай бұрын
i dont know why i getting an issue where after holding the left button to attack, the player movement suddenly broken. before attacking, the movement is fine
@luanius1877 ай бұрын
i made that you can enable and disable the inventory ui. but if its disabled and you add an item it adds the ItemPrefab on the inventory script. please help!
@crazyidea65962 ай бұрын
You can use animation and canvas group to make it not interactive and other way around.
@davibentim60807 ай бұрын
Liked and subscribed instantly when you provided the github repo. Too many tutorials out there with no repo.
@atifassdi3988 ай бұрын
how can i respown one item that i need it not random item?
@Yoni1238 ай бұрын
Can you make this for Godot?
@Mogg7989 ай бұрын
Good tutorial, had a couple problems with implementing it in my project, here is how i fixed if anyone has similar issue: Had an issue with Input.mousePosition in PlayerController script not being read, I had to go into player settings (Edit > project settings > player) and find the Active Input Handling dropdown and select "both". This fixed my errors but player wouldn't move on mouse click, as I didn't have any clickable layers set so, for temporary testing I just went to the inspector of the character and changed the clickable layers to "everything".
@leerc77217 ай бұрын
omg thank you so much Mogg! 😃
@DEValen9 ай бұрын
Great information. Just wanted to point out that the curve at 03:56 doesn't have the same shape as in 04:17, so the leveling progression won't be as expected.
@Patterno969 ай бұрын
I hope there will be more videos from this series because it is really very good and teaches a lot :D
@Patterno969 ай бұрын
Great video! Thanks a lot for the great explanation, that's what I was looking for!
@PhantomByte_9 ай бұрын
How would you do this with a follow camera anytime i add a camera it uses the inv one instead of follow
Пікірлер
whats the strategy to add amount on the individual items?
Error with your Circle material, seems to be a particle shader error. Cant find the shader you are using.
This is what we need about a tutorial about leveling system, Simple and very effective. Great video.
Hello, In this code, I've made adjustments to ensure the character looks in the direction of movement rather than always facing the target destination. This change helps avoid unnatural movement when the character is navigating around obstacles. Here's the updated code : void FaceTarget() { // Get the agent's current velocity Vector3 velocity = agent.velocity; // If the agent is moving if (velocity.magnitude > 0.1f) { // Normalize the movement direction and create a look rotation Vector3 direction = velocity.normalized; Quaternion lookRotation = Quaternion.LookRotation(new Vector3(direction.x, 0, direction.z)); // Apply a smooth rotation to face the movement direction transform.rotation = Quaternion.Slerp(transform.rotation, lookRotation, Time.deltaTime * lookRotationSpeed); } }
this guy is goated. - not asking for credits - free to use and well-prepared assets i will make sure to mention Pogle each time someone talks to me about my melee stuff!
if anyone is having an issue with the character's FaceTarget snapping after they stop moving. simply check to see if the velocity is zero. and if it is just return. void FaceTarget() { if (agent.velocity == Vector3.zero) return; Vector3 direction = (agent.destination - transform.position).normalized; Quaternion lookRotation = Quaternion.LookRotation(new Vector3(direction.x, 0, direction.z)); transform.rotation = Quaternion.Slerp(transform.rotation, lookRotation, Time.deltaTime * lookRotationSpeed); }
I have a simple problem, when I click the item to hold it, the image of the item dissapears but when I click on other / same inventory field, it recover its image
If Input Actions does not appear on your create list, return to package manager and download Input System from Unity Registry.
i cant open the project, it says This project is not valid
writes an error. I can’t insert your project from Github into Unity
ive used a character from the pack that you used but i cant find the avarat for it for the animation controller @PogleDev
video tao bom que começa ja com o cara abrindo projeto ja pornto com o dowload nao abrindo como projeto na uinty
This was a fantastic tutorial on how to accomplish the pixel look. Exactly what I needed to find. Thank you!
i cant figure any thing out would u help me pog?
❤❤❤❤❤❤❤❤❤❤ tnx for the idea
Worked, but for some reason, now I keep getting this bug(s): Error 1: NullReferenceException: Object reference not set to an instance of an object PlayerController.ClickToMove () (at Assets/Scripts/PlayerController.cs:40) PlayerController.<AssignInputs>b__9_0 (UnityEngine.InputSystem.InputAction+CallbackContext ctx) (at Assets/Scripts/PlayerController.cs:34) UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.CallbackArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at ./Library/PackageCache/[email protected]/InputSystem/Utilities/DelegateHelpers.cs:46) UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) Error 2: NullReferenceException while executing 'performed' callbacks of 'Main/Move[/Mouse/leftButton]' UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)
That was just what I was looking for, thanks! I find blender a little difficult and most tutorials are skipping steps so the viewers get lost at times, me included. If possible, add a key-press view to blender. Keep up the good work! 😄
Can I use avatar mask here to make sure that walk animation works while attacking?
no matter what I click or do ClickToMove(); never gets called??
Great vid! Note: You can replace the if-statement (02:00) by a while loop to handle multiple level ups at once.
What I needed. Keep up the good work!
Thank you for this , can you do a follow up video to save and recall conversations?
Please, master! More lessons in this serial
It's probably too late to give advice, but for those who stumble upon this video, I recommend turning on DESTROY in the effect tab in "Stop actions" so that the effects are removed
Legend
Hi I have a problem where the character does reach the destination, but lags behind and teleports as the animation happens. It does arrive yes but it does that where it is buggy and laggy. It does work perfectly though when clicking the area and it arriving there.
Please next part 👏
at first it wasn't working but then i realized that i had to select the default layer for the player controller script, Thanks !
if i have a project that your camera is stuck with your cursor then how do i make it unstuck so i can access the inventory? (great tutorial btw)
simply add a code line that when you press the inventory button the camera movement is disabled and when someone exits the inventory it reopens also you'd have to mabey add a boolean like the true false and an if statement like if bolean false then dont move or any way it fits into your code
@@M.DaniyalAnsari thanks for your suggestion but i found a solutions wich was CursorLockMode.None
Really nice tutorial. I am adapting what i already had to your tutorial and its working good!
Add remaining distance checking in FaceTarget so it does not rotate like an idiot in the end :P
lifting objects from the ground would go a long way in this tutorial :) using this inventory
Doing this on raycast is a terrible approach, BoxCast is much better following the weapon in the animation, now you do "empty" swings and they doesn't matter
Any suggestions on using BoxCast? I'm working on doing a melee combat system and can't seem to find a good tutorial/tips to follow
Wait what? Cus I literally just added a knife melee weapon in my game and it's using a raycast and I'd like something better but no idea what but this sounds promising
I'm getting error on input.Main.Move.performed += ctx => ClickToMove(); "Severity Code Description Project File Line Suppression State Error CS1061 'CustomActions.MainActions' does not contain a definition for 'Move' and no accessible extension method 'Move' accepting a first argument of type 'CustomActions.MainActions' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharp
now make it burn with some nice stylized fire
Please continue the series, it is really amazing and I learn so much! Subbed for this amazing series.
Love to see a easy to follow Blender tutorial like this, thanks!
Thank you!
great video !
How would you equip inventory items (for example a chestplate)
i dont know why i getting an issue where after holding the left button to attack, the player movement suddenly broken. before attacking, the movement is fine
i made that you can enable and disable the inventory ui. but if its disabled and you add an item it adds the ItemPrefab on the inventory script. please help!
You can use animation and canvas group to make it not interactive and other way around.
Liked and subscribed instantly when you provided the github repo. Too many tutorials out there with no repo.
how can i respown one item that i need it not random item?
Can you make this for Godot?
Good tutorial, had a couple problems with implementing it in my project, here is how i fixed if anyone has similar issue: Had an issue with Input.mousePosition in PlayerController script not being read, I had to go into player settings (Edit > project settings > player) and find the Active Input Handling dropdown and select "both". This fixed my errors but player wouldn't move on mouse click, as I didn't have any clickable layers set so, for temporary testing I just went to the inspector of the character and changed the clickable layers to "everything".
omg thank you so much Mogg! 😃
Great information. Just wanted to point out that the curve at 03:56 doesn't have the same shape as in 04:17, so the leveling progression won't be as expected.
I hope there will be more videos from this series because it is really very good and teaches a lot :D
Great video! Thanks a lot for the great explanation, that's what I was looking for!
How would you do this with a follow camera anytime i add a camera it uses the inv one instead of follow
hey man can u make more of this series please