Skip to content

GR-124/Learning_Journal

Repository files navigation

Learning_Journal

journal for learning programming

30/10/2024-

while making a damage player script i ghad to reference a health controller script but i haven't made one yet for my tutorials. Solution: i just referenced it anyway and ill make the script after.

when testing scripts on unity floor seems to move with with player. Solution: named ground ground point. grouhndpiont in player so i took it out

05/11/2024-

when making health controller it didn't work. solution: typed currenthealth = maxhealth; in wrong bit of script so i moved it.

12/11/2024-

i don't know what null means and i have to explain it in my tutorial. Solution: i googled it. it means no object

i don't know what StartCoroutine means and i have to explain it in my tutorial. Solution: i googled it. it means it returns upon the first yield return

i dont know what IEnumerator means and i have to explain it in my tutorial. Solution: i googled it. its the the base interface for all non generic enumerators.

26/11/2024-

3 of my tutorials are connected and i have to keep referencing them. Solution: i will combine them but its gonna be long :(

when combining the 3 scripts, one references a 4th script so now i have to add it to the tutorial so that means more work :(. Solution: just do it

when in test game to test scripts, the player disappears and idk why. Solution: i put the respawn controller script in the player and in the respawn manager and so they deleted eachother, i just took the scrpit out of the player and it was fixed.

03/12/2024-

in my npc script i dont remember what move rate means. Solution: i remembered. its how long (in seconds) the npc waits till it moves agaon after moving so it can move again.

npc would stop moving at random and its speed was random. Solution: i changed the random range from -1, 1 to -2, 2 because it would include the numbers between like 1 and -1.

10/12/2024-

i forgot what the x and y axis control. Solution: i remembered by moving objects on unity. x axis is for moving horizotaly and y axis is for moving vertically

i forgot what GetComponent(); means. Solution: i googled it and found out it allows you to access rigidbody components

i dont know what Lerp means. Solution: i googled it but did not understand so i looked on reddit and they explained better. Lerping changes the value of on object for where it was to where it moved to.

started doing script for shooting but vid im following dont make sense. Solution: i found a better video and also used some of my own knowledge. i ended up not finishing this script and instead make a different script because the shooting script didn't make sense for my proto type game.

unity don't understand script but the script is perfectly fine. Solution: the problem was in unity. it worked after i removed and add the script back in.

17/12/2024-

i dont know what to write in my if & else staements. Solution: i wrote the wrong type of if & else staement and i needed to reference unity editor. The correct statements were #if and #else. I also had to make an #endif

start button wont work but it has nothing to do with script. Solution: i didn't add any componants to the buuton.

27/12/24-

my learning journal is not very discriptive and had solutions like "google it". Solution: i have gone back and added more to my solutions because they were too simple and didn't tell you the answer tot the problem.

07/01/25-

camera wouldn't be smaller when I wanted to reduce its size. Solution: instead of changing size on the main camera i needed to change the size of virtual camera.

About

journal for learning programming. Tutorials for some C# coding scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors