First playable

This week I wanted to try and get the main mechanic of the game to work and that was the door and key mechanic. I watched a video on Youtube that helped me along with building this working mechanic, the link to this video is here.

This video really helped me with making this mechanic but I still have a lot to do. 


A screenshot of my Unity game 
Source: Personal Screenshot


A screenshot of my Unity game 
Source: Personal Screenshot


A screenshot of my Unity game 
Source: Personal Screenshot

These above screenshots show me collecting the key and then the door opening. I have a problem with my code though. Once you spawn in and press E, you instantly collect the key even if you are not near it. I also have a problem with the door opening from anywhere, after you have collected the key and then press E. I want it to be where you can only open the door when you are next to it. 

I will have to work a bit on my code so I get this mechanic working perfectly otherwise my game will not work. 


A screenshot of my Unity game 
Source: Personal Screenshot


A screenshot of my Unity game 
Source: Personal Screenshot

I then decided to take a break from coding and designed up this small room. This is the kind of design I will be doing for my other rooms but I plan to have the key harder to find as you progress through the game. 

Overall, I am happy with the progress I made. I just really hope to sort out the problems with my code soon. 


Comments

Popular Posts