Hey Everyone! I have only just realised there is some footage missing from the video!!! You may encounter the error "'InputManager.onFoot' is inaccessible due to its protection level". if you have this error you just need to change 1 line in the InputManager script. Change this -> private PlayerInput.OnFootActions onFoot; To this -> public PlayerInput.OnFootActions onFoot; Also!! at 21:26 in the AnimateCube script: Change this -> startMessage = promptMessage; To this -> startPrompt = promptMessage; Apologies for the mistake!
@@panachedhallchannel1635 I believe the door and button and cake were made offscreen in between episodes. They are all made (or can be made effectively) out of simple 3d cubes.
I appreciate that you take the time to show the process of building the code and explaining what many of the components do in the code. I also like your approach to naming conventions: keep names simple and explicit.
You must have done this for soooo long. Looks so easy when yo do it. Thanks for this series. Nice to see some advanced stuff (at least it seems so for a noob like me) and you still find time to explain most of it. keep it coming, subbed and ready!
I love watching tutorials. I've taken MANY courses, including the Junior Programmer Pathway. But, every time I take a tutorial, I learn something the courses didn't teach (or at least something I don't remember), such as the Interactable script and how it acts as a template. This can greatly improve the way I develop games.
to the people confused about the keypad and doors: they are made out of simple shapes. go into your hierarchy and add 3d object>cube, then transform each cube into the correct shapes.
I know I am late to this party but, if anyone stumbles across this and is worried about interacting with interactables through things like walls - On the 'Player Interact' Script, under distance is mask - Set this 'Default, Intractable' (select both Default and Interactable)
If anyone is confused about what they said about setting Default, Interactable. It's not in the actual script, rather it's in the player game object which has the script added to the inspector, there are fields where you can choose which layer mask you want the ray to have any interaction with. There you can click beside the mask and in the drop-down menu, click on default too. It's not mutually exclusive, you can add any amount of layer masks and remove them by clicking again. The problem is by default it won't interact with anything that's not using the Interactable layer, which includes the walls. But since you don't want the walls to be interactable, you add Default layer mask, which has no written code for in the scripts we made.
@@black_squall It, stops interactions through walls. If anyone is confused about what they said about setting Default, Interactable. It's not in the actual script, rather it's in the player game object which has the script added to the inspector, there are fields where you can choose which layer mask you want the ray to have any interaction with. There you can click beside the mask and in the drop-down menu, click on default too. It's not mutually exclusive, you can add any amount of layer masks and remove them by clicking again. The problem is by default it won't interact with anything that's not using the Interactable layer, which includes the walls. But since you don't want the walls to be interactable, you add Default layer mask, which has no written code for in the scripts we made.
@@mathlab6168 Same with me, I spent an hour just playing around, just make 3d blocks, adjust the positions and scale options to make walls a door and a small block for the button
i have watched the first ep from the beginning i wanted to change from different vids so i can make my own game but i dont need to bc he gives all the info thanks man
This video series is a really great achievement ! Thank you for your time and effort ! I know how difficult this work is... - btw: works with UNITY 2022.3 👍
Thank you so much for this wonderful tutorial, its really great but in the first tutorial you stopped at the crouch and sprint codes, and now you have built two rooms with doors and I don’t know how to do them so is there any other video in which you explained how to do them?
in the last tutorial, the video showed us the script snippets that u needed to add, and in what .cs file each snippet went in, including line references. It also showed the additional player input actions needed to be added for sprinting and crouching. regarding this video, to make a scene such as the one he created, u need to add cubes to your scene, and manipulate their size and position in space. Like this, you can get rectangles of any size. As for the cake that he added, well, he probably made that in Blender or something. However I, for example, created a sphere and distorted it so that it resembles a coin, since i have no means of making something more complex, unless i picked up 3d sculpting or looked for a 3d model online. Hope this helps!
I know it's late but I had a few errors popping up(like the ones the other comments are complaining of) and fixed it by deleting the copied files in the project. When I moved the files to the Player folder, it duplicated. Just go to Scripts folder and delete the player files. That's it. Tell me if it worked :) thx Edit: And if it still doesnt work, then save the script, open the script again from unity and check if its the same. usually it won't because the one i was working on was the cloned one. so just refresh and then check if the script is the same 🙂
oh thank god for you lol i ended up just moving everything back out of player folder and deleting the folder, because it kept saving a new copy of the script in either of the two places and it was a disaster lol thanks so much!
Great tutorial but unfortunately I am stuck on 15:58, because there's a error popping up saying that "'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)". I'm completely new with Unity so please can you help me on how to solve this problem?
Assets/Scripts/Player/PlayerInteract.cs(36,34): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)
Thanks man and btw for animating cube I used the code from Keypad and copied it and I made 2 clips just like in the video and for the changing color I used events.
Hah! wow.. Good pickup! yes they do come out of nowhere, it seems there was an editing error. we talk about and implement these lines at 20:14 Apologies for the confusion! I had to crunch a bit to get this video out and I completely missed that!
16:54 Is it just me or did the lines private GameObject door; private bool doorOpen; and doorOpen = !doorOpen; door.GetComponent().SetBool("IsOpen", doorOpen); come from nowhere
Hi! I am a blocked after the first video, because I don't know how to make that walls😂. I am really new to unity, and this is the first tutorial that worked from the beginning to the end).
hi, first of all i really loved the first lesson! thank you very much! but it feels like the second lesson skipped the build up for the set up making it a bit hard to follow throu. thanks in advence
Hi ive been waiting for this! Nice Quality Video man. But i have a Problem. I dont get any Errors but when i interact with the keypad it doesnt play the animation. so i tried doing a debug.log to check if its even getting the input, and yes the input works but the animation just doesnt play :/
Hey, how have you gone with this? Does the animation work when you manually set the boolean in the animator window like in the video? I believe it may be something odd in the animator, or with the boolean values you're passing through to there :)
srry im late but, try checking if the parameter name of the animation (in the animator on the left) has the EXACT same spelling as the one refrenced in the script.
Thank you for wonderful tutorial. It is awesome that I can take this lesson for free. By the way, I am wondering how long will it take to be able to do this by myself. I am totally a begginer and found it very complexed.
Bro is this the 2nd vid of this series or any other there like 1.5? Bcoz in the first vid there waas only a platform but now there is an entire room with cake!
Awesome video, grest tutorials, bring more interactions and transitions (gameplay, freeze controls, play anim, bring controls and gameplay). and what the name of it to I search, please. peace bro
where the heck was this map[ made in the series? im dumb and don't know anything aobout coding i watched the first tutorial and it was really hard and now im expected to know how ot model a cake??? and a door??????
this is pretty good, but in my opinion it’s better to make the interface IInteracteble, this will help interact with an object of any class if it implements this interface
This is an amazing tutorial series and I'm loving it but I'm having a slight problem with my 'Interactable' script my error message says "Assets\Scripts\Player\PlayerInteract.cs(34,50): error CS1061: 'Interactable' does not contain a definition for 'promptMessage' and no accessible extension method 'promptMessage' accepting a first argument of type 'Interactable' could be found (are you missing a using directive or an assembly reference?)" could you please help me
really love the tutorials. I had some issues like accidental duplications of a couple scripts and not having certain things public which i found the answer to in your comment on here. I do want to know, how do you make your character start out not looking at the ground? this has been a common issue throughout my time trying to find a good character controller
So i had the same problem, and after looking in some of the older Discord posts I found out it was caused by moving the PlayerInteract script into player folder. For some reason Unity duplicated the PlayerInteract script when moving this script. to solve the issue, make sure there is no duplicate of the 'PlayerInteract' script (look in the 'scripts' folder + the newly created 'Player' folder and delete either of the files), what might help is closing VisualStudio code before deleting or moving any scripts.
Thank you for special explane. But in episode 2 of make game, we havw not any ideas for make design in game like walls and door and they're not in video. Please help me❤
I’m having trouble trying to set up two or more of these initial Boolean animation interactables taught in the video, with two separate doors and a chain of switches that rise from inside my arena’s platforms, one opening up to the next. I can’t seem to use only one Switch script, because if I try to abandon including the particular objects that I don’t want changed from only one switch, by not inserting the objects into the script component fields, it doesn’t let me enter play, and more or less said that I needed to include the missing objects in the field. When I enter all objects into the fields, and apply this one master script to, for example, 2 separate switches, the first I intend to have, “close door 1, lower switch 1, raise switch 2”, and the second I intend to have, “raise switch 1, lower switch 2, open door 2”, it makes it work to where I have to double-click to seemingly activate, and switch 1 involves the unintended door 2 as well as intended door 1, while the same happens for switch 2 as I just mentioned for switch 1(unintended additional inclusion of door 1). So I’ve tried to separate the switch animations across 2 different script components, so as to attempt to force switch 1 to not involve door 2, and force switch 2 to not involve door 1. What happened, however, is that I got an error type CS0115: “No suitable method found to override”. It occurs for each of the two separate scripts, and directs me to the scripts’ lines and characters that start the word “override” in my “protected override void Interact()” function(?). I looked up online, and found commonly that people were able to clear their similar error prompts by just removing “override” in their function line, so I did the same, and it did clear it up, but now within the Unity editor, in my switch object inspector script components, it shows that I no longer have a field for Prompt Message, where you had us write our specific message of, “Use Keypad”, or for my instance, “Use Switch 1/ Use Switch 2”. Also, when I enter play, naturally, the switch 1 no longer prompts my “Use Switch 1 message, and it also doesn’t affect any three of my intended animations, across door 1(close), switch 1(lower), and switch 2(raise). I’m left assuming that having two separate booleans coming from two separate scripts, trying to manipulate one object, such as in my case, having both switch objects attempting to raise and lower one another, causes a problem, where perhaps either an prior or default offset position of a switch that the other needs to work is not positioned. I know that there is that Boolean parameter check box field that maybe can be used to initiate registry for the other object’s scripted position, so I’ll try that, but if it doesn’t work, then I hope to get some help with this. I’m really curious and actually have my heart a little set on trying to make use of just this one type of Boolean animation interaction, because I have a plan to create a large and high arena room to make a game out of searching for newly surfaced switches that emerge from the platforms, where with the range of raycast reception controlled by the size of switch object to size of platform, a desired inaccessibility of unsurfaced switch can retain the flow of the gameplay’s challenge, in plan to include all the while frequent and dangerous enemy spawns to keep pressure on the search for switches, for the end goal of opening the door 2 to an elevator lift that proceeds to the next level(scene?). Anyway, thanks for what video content has helped so far, and again it would be really cool if I can snag some late help in this series’ lifecycle. I’m writing this as of May 25, 2024.
After importing the UI into player input, I keep getting an error saying type or namespace definition, or end of file expected. Does anyone know a fix please?
awesome video btw but up until around 17 minutes into the video I keep getting this error: "Assets/Scripts/Player Scripts/PlayerInteract.cs(35,34): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)" Ive triple checked all of my scripts and cannot figure out the problem. Anyone know what wrong?
try delete the PlayerInput.cs file and regenerate it.. I have found that if you edit your action map after you have generated the script.. then you will need to delete it and regenerate it :)
@@tommyvanwoerkom5411 I wanted to paste his reply that helped fix this issue: "So the way to fix the onfoot error is to make the property public in the InputManager script. public PlayerInput.OnFootActions onFoot; and most likely because intellisense didn't pop up.. on line __ in playerinteract change OnFoot to onFoot"
I just want to know how did you create the walls and doors? You didn't take time to explain it. It would have been better for beginners like me to understand if you had showed
I know its late but what I did is I used 3d cubes to make walls and changing their X , Y, Z scales in each cubes transfrom . I also changed the colors of the walls by creating a new material.
Hello , can you please explain how did you create the doors and other objects....It's my first 3D game and I don't know how to create those objects without any tutorials
great vid, around 17 minutes in, I get an error Assets\Scripts\Player\PlayerInteract.cs(36,33): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?) idk how to fix this, please help me
I FOUND THE SOLUTION ON THIS: Assets\Scripts\Player\PlayerInteract.cs(36,34): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?) In the PlayerInteract script the 36th line you have to change OnFoot --> onFoot. It is wrong in the video , dont use capital letter. Just simple onFoot. The right line is: " if (inputManager.onFoot.Interact.triggered) "
Hey man, trying to make a game using these tutorials and a couple of things arent working. I followed your tutorial to the letter and the text that was supposed to disapear has not done so. Is this because of some Unity update? Thx
Hey, Awesome tutorial but I have a problem at 18:40 my animation didn't get smooth. I tried making another keyframe but then my animation got stuck from switching to open and closed state. When I didn't try to smooth my animations they were normal, but when i add another keyframe everything brokes.
If you mean that it's closing rapidly, then you need the third animation clip. Its firs keyframe should contain transform values from the opened animation and the second keyframe - from closed. Then put it on the transition from opened to closed. Hope that helps :)
Please, if you are showing us tutorials, do it without any keyboard shorcuts. It took me 15 minutes to figure out how did you got Base Layer in Animator and I didn't!!!
Hey there I was stuck on this animating door thing because when I first tried it I messed up on a step but now I don't know how to fix it and the door won't open
At 11:18, Nat right clicks to copy, but that submenu doesn't even pop up for me when I right click. Anyone else having a similar issue? I tried to ctrl-c and ctrl-v it but it only works in the same inputaction window, not a different one.
I'm getting the error " "InputManager" does not contain a definition for "OnFoot" and no accessible extension method "OnFoot" accepting a first arguement of type "InputManager" could be found" is there any way I can fix this? Edit: Nevermind, I LEGIT JUST HAD TO CHANGE "on" to "On". 🤦♂️🤦♂️🤦♂️🤦♂️
@@manyk6971 sorry i forgot i looked at this tutorial 2 years ago. just try look at the error messages and search them up. also think of the logic in your code too
Very good work!! I just started programming in Unity and it already seems super-powerfull! And a little problem: It started appearing a little joystick at the bottom of the screen. Should it be there?
how do you get all those suggestions for what to put in ? please help i think it would make it alot easier to follow the tutorial and not have to pause all the time, Thanks !
Assets\Scripts\PlayerInteract.cs(11,12): error CS0246: The type or namespace name 'InputManager' could not be found (are you missing a using directive or an assembly reference?)
check if the starting part of ur script is public class InputManager : MonoBehaviour it will be different if u renamed ur script in unity for example if u changed it to input the code wont change to public class input : MonoBehaviour it will stay as it was previousley named i had this same error hope it helps
@Natty GameDev hi, i did the opening door thing, but i dont have to press the e key instead if u just look at it it opens and closes over and over again, do you know how to fix this?
Hey Everyone! I have only just realised there is some footage missing from the video!!!
You may encounter the error "'InputManager.onFoot' is inaccessible due to its protection level".
if you have this error you just need to change 1 line in the InputManager script.
Change this -> private PlayerInput.OnFootActions onFoot;
To this -> public PlayerInput.OnFootActions onFoot;
Also!! at 21:26 in the AnimateCube script:
Change this -> startMessage = promptMessage;
To this -> startPrompt = promptMessage;
Apologies for the mistake!
no problemo thanks for the fixes!
thanks man!
ty very muchoo !
when did we make a door in the last episode?
@@panachedhallchannel1635 I believe the door and button and cake were made offscreen in between episodes. They are all made (or can be made effectively) out of simple 3d cubes.
I have watched loads of tutorials to handle interactions, but this is by far the best one. Super clear and easy to understand. Thank you
Thank you for fueling my dreams on coding and game devolpment!
me to bro
I appreciate that you take the time to show the process of building the code and explaining what many of the components do in the code. I also like your approach to naming conventions: keep names simple and explicit.
You must have done this for soooo long. Looks so easy when yo do it. Thanks for this series. Nice to see some advanced stuff (at least it seems so for a noob like me) and you still find time to explain most of it. keep it coming, subbed and ready!
I love watching tutorials. I've taken MANY courses, including the Junior Programmer Pathway. But, every time I take a tutorial, I learn something the courses didn't teach (or at least something I don't remember), such as the Interactable script and how it acts as a template. This can greatly improve the way I develop games.
WOW! Thank you - you posted this on my birthday lol. Awesome video!
Hahah Happy Birthday! I really hope you enjoyed the cake !!🎂🎂 thank you so much for watching and have an awesome day !! 🙂
Happy birthday bro
it was 2 years ago @@armando_gamer1929 💀💀
to the people confused about the keypad and doors: they are made out of simple shapes. go into your hierarchy and add 3d object>cube, then transform each cube into the correct shapes.
of all the tutorials I have been searching so far this works for me and I thank you, keep up the good work :)
I know I am late to this party but, if anyone stumbles across this and is worried about interacting with interactables through things like walls - On the 'Player Interact' Script, under distance is mask - Set this 'Default, Intractable' (select both Default and Interactable)
thank you, i was dying while reading those documents T_T
lifesaver
Thanks
If anyone is confused about what they said about setting Default, Interactable. It's not in the actual script, rather it's in the player game object which has the script added to the inspector, there are fields where you can choose which layer mask you want the ray to have any interaction with. There you can click beside the mask and in the drop-down menu, click on default too. It's not mutually exclusive, you can add any amount of layer masks and remove them by clicking again.
The problem is by default it won't interact with anything that's not using the Interactable layer, which includes the walls. But since you don't want the walls to be interactable, you add Default layer mask, which has no written code for in the scripts we made.
@@black_squall It, stops interactions through walls. If anyone is confused about what they said about setting Default, Interactable. It's not in the actual script, rather it's in the player game object which has the script added to the inspector, there are fields where you can choose which layer mask you want the ray to have any interaction with. There you can click beside the mask and in the drop-down menu, click on default too. It's not mutually exclusive, you can add any amount of layer masks and remove them by clicking again.
The problem is by default it won't interact with anything that's not using the Interactable layer, which includes the walls. But since you don't want the walls to be interactable, you add Default layer mask, which has no written code for in the scripts we made.
Thank you so much man! It's insane how much I learn from you! Really looking forward to more videos like these!
Hva satan boomy laver du spil? Du burde da sidde på fv og trolle XD
@@durumvfx Yea haha, går på skole med programmering og spiludvikling så det altid dejligt at lære noget nyt :D
@@boomy1 Det lyder da lækkert, håber det går godt med den der skole ;)
Natty can you please add a tutorial for the setup of the scene. It would be much appreciated.
agree
I am new and this is my first project and I have no clue of how he created the scene. It would be great if there was a tutorial for the scene
@@mathlab6168 Same with me, I spent an hour just playing around, just make 3d blocks, adjust the positions and scale options to make walls a door and a small block for the button
did anyone found out how to setup the scene??
@@prajanyashrestha3652 It's just a bunch of cubes that are scaled. Not that hard to make ;)
these have been the best working tutorials for me in awhile i appreciate you taking the time and effort for these
Hey natty,
Really love your videos!
I have been looking for an easy tutorial for month and finally found one
Keep it up :)
Wow, you learn a lot watching and paying attention.
Thanks for making this amazing tutorial. I really think your channel will blow up soon! :)
i have watched the first ep from the beginning i wanted to change from different vids so i can make my own game but i dont need to bc he gives all the info thanks man
I really love your tutorials, dude !
(Waiting for new parts)
yess the sequal came i loved the first one and cant wait to use this guide
yoooo, this part is much better then previous one, thank you for this tutorial))
I have been waiting for you to upload , thank you.
This video series is a really great achievement ! Thank you for your time and effort ! I know how difficult this work is... - btw: works with UNITY 2022.3 👍
Thank you. This is going to be a good series. I like tutorials that make me think.
id love a tutorial on how to set up the world space prompts!
Thank you so much for this wonderful tutorial, its really great but in the first tutorial you stopped at the crouch and sprint codes, and now you have built two rooms with doors and I don’t know how to do them so is there any other video in which you explained how to do them?
in the last tutorial, the video showed us the script snippets that u needed to add, and in what .cs file each snippet went in, including line references. It also showed the additional player input actions needed to be added for sprinting and crouching.
regarding this video, to make a scene such as the one he created, u need to add cubes to your scene, and manipulate their size and position in space. Like this, you can get rectangles of any size. As for the cake that he added, well, he probably made that in Blender or something. However I, for example, created a sphere and distorted it so that it resembles a coin, since i have no means of making something more complex, unless i picked up 3d sculpting or looked for a 3d model online.
Hope this helps!
Good stuff man, looking forward to following along with this series.
Holy Moly thank you this was awesome hope you do an Inventory System Tut in the future one of the best examples of how to Code in C# for unity
I know it's late but I had a few errors popping up(like the ones the other comments are complaining of) and fixed it by deleting the copied files in the project. When I moved the files to the Player folder, it duplicated. Just go to Scripts folder and delete the player files. That's it. Tell me if it worked :) thx
Edit: And if it still doesnt work, then save the script, open the script again from unity and check if its the same. usually it won't because the one i was working on was the cloned one. so just refresh and then check if the script is the same 🙂
oh thank god for you lol i ended up just moving everything back out of player folder and deleting the folder, because it kept saving a new copy of the script in either of the two places and it was a disaster lol thanks so much!
Yesss been waiting for this
We all have been :D
If the canvas is in your way in the scene and you keep clicking on it, just click the eyeball next to canvas in your hierarchy
Thank you for the great tutorial!
Great tutorial but unfortunately I am stuck on 15:58, because there's a error popping up saying that "'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)". I'm completely new with Unity so please can you help me on how to solve this problem?
So I believe you will need to change the private Onfoot variable to public (in input manager). And make sure the names match in both scripts...
@@NattyGameDev Thank you so much I don't think I would of ever figured that out everything works now how it should👍
@@NattyGameDev i still have problems
with this part :(
Assets/Scripts/Player/PlayerInteract.cs(36,34): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)
@@EmberGlide i found that after like the second time making the o inputManager.OnFoot lowercase instead worked as inputManager.onFoot
Thanks man and btw for animating cube I used the code from Keypad and copied it and I made 2 clips just like in the video and for the changing color I used events.
Thank you. You are an excellent teacher
Looking forward to part 3 mate :)
Part 3 out now! :D th-cam.com/video/_UIiwzfZoZA/w-d-xo.html
Is it just me or at 16:54 the lines of code
doorOpen = !doorOpen;
door.GetComponent().SetBool("IsOpen", doorOpen);
appear out of nowhere,
Hah! wow.. Good pickup! yes they do come out of nowhere, it seems there was an editing error.
we talk about and implement these lines at 20:14
Apologies for the confusion! I had to crunch a bit to get this video out and I completely missed that!
Dang I did not expect a reply that fast, thanks!
no it did
yeah i saw that too! I was about to add it but then a bit later its back to normal! I was so confused 🤣
I was confused too
16:54
Is it just me or did the lines
private GameObject door;
private bool doorOpen;
and
doorOpen = !doorOpen;
door.GetComponent().SetBool("IsOpen", doorOpen);
come from nowhere
no it did
the best one so far, bravo!!
you are the best, and plZ upload fast
im in 2024, this still works great!
Hi! I am a blocked after the first video, because I don't know how to make that walls😂. I am really new to unity, and this is the first tutorial that worked from the beginning to the end).
привет, ты уже разобрался? У меня точно такая же проблема...
@@l_a__z_y I know this is super late, but have you tried setting up a collider component? you can access them through the physics tab of components.
hi, first of all i really loved the first lesson! thank you very much! but it feels like the second lesson skipped the build up for the set up making it a bit hard to follow throu. thanks in advence
Hi ive been waiting for this! Nice Quality Video man. But i have a Problem. I dont get any Errors but when i interact with the keypad it doesnt play the animation. so i tried doing a debug.log to check if its even getting the input, and yes the input works but the animation just doesnt play :/
Hey, how have you gone with this?
Does the animation work when you manually set the boolean in the animator window like in the video?
I believe it may be something odd in the animator, or with the boolean values you're passing through to there :)
srry im late but, try checking if the parameter name of the animation (in the animator on the left) has the EXACT same spelling as the one refrenced in the script.
@@TheOnlyK1ng thank you man you dont know how much u help me now!!!!!!
@@NattyGameDevcan u show us how the door?
Thanks for this great series!
is there a part in this video where you show us how to make the walls, keypad and cake stand?
they're just made out of cubes
🍌
🍅
Really Good Tutorial Thank you dude
terrific job Natty Gamedev!
Awesome video series man, really insightful! How often do you plan to upload these?
Thanks very much! I really appreciate it :) I am going to try upload more often over the coming months, I have a number of videos planned!
@@NattyGameDev I'm curious what topics you're going to cover, do you mind sharing a breakdown? I'm very interested!
Thank you so much you've been a big help
12:39 just a time stamp for me when i get back lol
Thanks. Keep it up !
Thank you for wonderful tutorial. It is awesome that I can take this lesson for free.
By the way, I am wondering how long will it take to be able to do this by myself. I am totally a begginer and found it very complexed.
Bro is this the 2nd vid of this series or any other there like 1.5?
Bcoz in the first vid there waas only a platform but now there is an entire room with cake!
Is there a way to stop the raycast from going through the wall in order to lock the door behind the player?
Nice vid man !!!! I'm a unity noob at want to learn making a FPS game.
That's Awesome! You can do it! :D
Awesome video, grest tutorials, bring more interactions and transitions (gameplay, freeze controls, play anim, bring controls and gameplay). and what the name of it to I search, please. peace bro
where the heck was this map[ made in the series? im dumb and don't know anything aobout coding i watched the first tutorial and it was really hard and now im expected to know how ot model a cake??? and a door??????
this is pretty good, but in my opinion it’s better to make the interface IInteracteble, this will help interact with an object of any class if it implements this interface
This is an amazing tutorial series and I'm loving it but I'm having a slight problem with my 'Interactable' script my error message says "Assets\Scripts\Player\PlayerInteract.cs(34,50): error CS1061: 'Interactable' does not contain a definition for 'promptMessage' and no accessible extension method 'promptMessage' accepting a first argument of type 'Interactable' could be found (are you missing a using directive or an assembly reference?)" could you please help me
How did you fix it pleas tell me
i have the same probleme any idea how to fix this?
did you find a solution@@norealforsake
my issue was a typo in the variable definition
there is a way to stop the ray crossing throw walls?, i dont want to interact with the keybord form the other side of the wall
this helped me a lot thanks
please could you describe what you're doing, I'm new to unity, please?
really love the tutorials. I had some issues like accidental duplications of a couple scripts and not having certain things public which i found the answer to in your comment on here. I do want to know, how do you make your character start out not looking at the ground? this has been a common issue throughout my time trying to find a good character controller
Dude I have the same problem I watch that part 3 times and I still can't find what's wrong
same as lads
So i had the same problem, and after looking in some of the older Discord posts I found out it was caused by moving the PlayerInteract script into player folder. For some reason Unity duplicated the PlayerInteract script when moving this script.
to solve the issue, make sure there is no duplicate of the 'PlayerInteract' script (look in the 'scripts' folder + the newly created 'Player' folder and delete either of the files), what might help is closing VisualStudio code before deleting or moving any scripts.
3:13
stopping here to go sleep
Thank you for special explane. But in episode 2 of make game, we havw not any ideas for make design in game like walls and door and they're not in video. Please help me❤
inputManager does not contain a definition for OnFoot
(line 35 for you)
same issue here. maybe because in the inputmanager, the onfoot variable is set to private, not sure though
I’m having trouble trying to set up two or more of these initial Boolean animation interactables taught in the video, with two separate doors and a chain of switches that rise from inside my arena’s platforms, one opening up to the next.
I can’t seem to use only one Switch script, because if I try to abandon including the particular objects that I don’t want changed from only one switch, by not inserting the objects into the script component fields, it doesn’t let me enter play, and more or less said that I needed to include the missing objects in the field.
When I enter all objects into the fields, and apply this one master script to, for example, 2 separate switches, the first I intend to have, “close door 1, lower switch 1, raise switch 2”, and the second I intend to have, “raise switch 1, lower switch 2, open door 2”, it makes it work to where I have to double-click to seemingly activate, and switch 1 involves the unintended door 2 as well as intended door 1, while the same happens for switch 2 as I just mentioned for switch 1(unintended additional inclusion of door 1).
So I’ve tried to separate the switch animations across 2 different script components, so as to attempt to force switch 1 to not involve door 2, and force switch 2 to not involve door 1. What happened, however, is that I got an error type CS0115: “No suitable method found to override”. It occurs for each of the two separate scripts, and directs me to the scripts’ lines and characters that start the word “override” in my “protected override void Interact()” function(?).
I looked up online, and found commonly that people were able to clear their similar error prompts by just removing “override” in their function line, so I did the same, and it did clear it up, but now within the Unity editor, in my switch object inspector script components, it shows that I no longer have a field for Prompt Message, where you had us write our specific message of, “Use Keypad”, or for my instance, “Use Switch 1/ Use Switch 2”. Also, when I enter play, naturally, the switch 1 no longer prompts my “Use Switch 1 message, and it also doesn’t affect any three of my intended animations, across door 1(close), switch 1(lower), and switch 2(raise).
I’m left assuming that having two separate booleans coming from two separate scripts, trying to manipulate one object, such as in my case, having both switch objects attempting to raise and lower one another, causes a problem, where perhaps either an prior or default offset position of a switch that the other needs to work is not positioned.
I know that there is that Boolean parameter check box field that maybe can be used to initiate registry for the other object’s scripted position, so I’ll try that, but if it doesn’t work, then I hope to get some help with this.
I’m really curious and actually have my heart a little set on trying to make use of just this one type of Boolean animation interaction, because I have a plan to create a large and high arena room to make a game out of searching for newly surfaced switches that emerge from the platforms, where with the range of raycast reception controlled by the size of switch object to size of platform, a desired inaccessibility of unsurfaced switch can retain the flow of the gameplay’s challenge, in plan to include all the while frequent and dangerous enemy spawns to keep pressure on the search for switches, for the end goal of opening the door 2 to an elevator lift that proceeds to the next level(scene?).
Anyway, thanks for what video content has helped so far, and again it would be really cool if I can snag some late help in this series’ lifecycle. I’m writing this as of May 25, 2024.
so when did we make these two rooms? im confused
@Clio Then how are we supposed to make the UI properties
@Clio I'm kinda confused
@@swiftypopty1102 why?
Did you figure out how to make the scene? lol
How?!
After importing the UI into player input, I keep getting an error saying type or namespace definition, or end of file expected. Does anyone know a fix please?
where am i supposed to plug that code into from the end of the video?
awesome video btw but up until around 17 minutes into the video I keep getting this error:
"Assets/Scripts/Player Scripts/PlayerInteract.cs(35,34): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)"
Ive triple checked all of my scripts and cannot figure out the problem. Anyone know what wrong?
try delete the PlayerInput.cs file and regenerate it.. I have found that if you edit your action map after you have generated the script.. then you will need to delete it and regenerate it :)
@@NattyGameDev ok tsym. Surprised on how fast you replied :)
sorry to bother you again but ive tried regenerating it and I still have the same problem.
@@tommyvanwoerkom5411 I'm having the same issue. I'm currently comparing!
@@tommyvanwoerkom5411 I wanted to paste his reply that helped fix this issue:
"So the way to fix the onfoot error is to make the property public in the InputManager script. public PlayerInput.OnFootActions onFoot;
and most likely because intellisense didn't pop up.. on line __ in playerinteract change OnFoot to onFoot"
I just want to know how did you create the walls and doors? You didn't take time to explain it. It would have been better for beginners like me to understand if you had showed
Hi Natty i love how you explain things but i missed how you made the rooms and cake can you walk us through
ikr, i was so confused
I know its late but what I did is I used 3d cubes to make walls and changing their X , Y, Z scales in each cubes transfrom . I also changed the colors of the walls by creating a new material.
I'm surprised he didn't show that, I'm also very confused too.
@@swiftypopty1102 its just some simple cubes :)
@@HugeHippohow did you make the wall with the door?
you are legend thanks
U better add not only interactable, but also Default as mask, otherwise ur ray will get through objects
ty
the cake is not a lie🎉🎉
Hello , can you please explain how did you create the doors and other objects....It's my first 3D game and I don't know how to create those objects without any tutorials
great vid, around 17 minutes in, I get an error
Assets\Scripts\Player\PlayerInteract.cs(36,33): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)
idk how to fix this, please help me
i believe he addressed that in the comments
I FOUND THE SOLUTION ON THIS:
Assets\Scripts\Player\PlayerInteract.cs(36,34): error CS1061: 'InputManager' does not contain a definition for 'OnFoot' and no accessible extension method 'OnFoot' accepting a first argument of type 'InputManager' could be found (are you missing a using directive or an assembly reference?)
In the PlayerInteract script the 36th line you have to change OnFoot --> onFoot. It is wrong in the video , dont use capital letter. Just simple onFoot. The right line is: " if (inputManager.onFoot.Interact.triggered) "
@@peterfarago7727 thanks! i was trying to fix this for 2 hours
Hey man, trying to make a game using these tutorials and a couple of things arent working. I followed your tutorial to the letter and the text that was supposed to disapear has not done so. Is this because of some Unity update? Thx
When I tried to do the: if (inputManager.OnFoot.Interact.triggered), it says OnFoot cannot be found
I have a problem where the interact key is double clicking without being pressed more than once. Any ideas how to fix?
I keep getting the error "error CS1061: Interactable doesnt contain a definition for promptMessage" any help?
Hey, Awesome tutorial but I have a problem at 18:40 my animation didn't get smooth. I tried making another keyframe but then my animation got stuck from switching to open and closed state. When I didn't try to smooth my animations they were normal, but when i add another keyframe everything brokes.
me too
If you mean that it's closing rapidly, then you need the third animation clip.
Its firs keyframe should contain transform values from the opened animation and the second keyframe - from closed.
Then put it on the transition from opened to closed.
Hope that helps :)
the interactable.BaseInteract(); doesnt work?
Please, if you are showing us tutorials, do it without any keyboard shorcuts. It took me 15 minutes to figure out how did you got Base Layer in Animator and I didn't!!!
Same
Hey there I was stuck on this animating door thing because when I first tried it I messed up on a step but now I don't know how to fix it and the door won't open
When I try to animate it and move it to the right it doesn't actually record those keys
very helpful thank euuu
At 11:18, Nat right clicks to copy, but that submenu doesn't even pop up for me when I right click. Anyone else having a similar issue? I tried to ctrl-c and ctrl-v it but it only works in the same inputaction window, not a different one.
same, have you found a fix to it?
@icerx2140 the only fix I got was to get the latest version of unity. Unity 6 I think
@@CB66941 i just did the same thing without moving the inputs , it still worked
When I look at the keypad the text isn’t there
I'm getting the error " "InputManager" does not contain a definition for "OnFoot" and no accessible extension method "OnFoot" accepting a first arguement of type "InputManager" could be found" is there any way I can fix this?
Edit: Nevermind, I LEGIT JUST HAD TO CHANGE "on" to "On". 🤦♂️🤦♂️🤦♂️🤦♂️
yo howd you fix it ive changed the onFoot to OnFoot and it stil wont work
@@manyk6971 sorry i forgot i looked at this tutorial 2 years ago. just try look at the error messages and search them up. also think of the logic in your code too
hi im doing this project but i am using a different set of code for the movement and I'm not sure that with scuff my code and game altogether
Dang, I was hoping you would go over the homework in this video because I couldn't get it working for the life of me.
define all variables on the top of your script like running crouching etc.
Very good work!! I just started programming in Unity and it already seems super-powerfull! And a little problem: It started appearing a little joystick at the bottom of the screen. Should it be there?
If you did the first episode, we have to do xbox ios controls, if I remember, maybe its that/
@@Anonymous-y8l3s no, i just found out is a gizmo but thanks anyway
Waiting for TUTORIAL 3 UwU
dont ever do that again
hey
so i want to make a first person cooking game and i want to move objects like in portal
how do i do that
how do you get all those suggestions for what to put in ? please help i think it would make it alot easier to follow the tutorial and not have to pause all the time, Thanks !
Assets\Scripts\PlayerInteract.cs(11,12): error CS0246: The type or namespace name 'InputManager' could not be found (are you missing a using directive or an assembly reference?)
check if the starting part of ur script is
public class InputManager : MonoBehaviour
it will be different if u renamed ur script in unity for example if u changed it to input the code wont change to
public class input : MonoBehaviour it will stay as it was previousley named i had this same error hope it helps
when I interact with the keypad, it's giving an error :
Object reference not set to an instance of an object
In Keypad, line no. 25
do you rememver how you fixed it?
@Natty GameDev hi, i did the opening door thing, but i dont have to press the e key instead if u just look at it it opens and closes over and over again, do you know how to fix this?
hey i need help at around 7 minutes into the vid, it says interactable does not have a definition for promptMessage or smthn