I’m not sure if I structured the code correctly (InventoryItem.gd)
Brother, you are God sent!!! Before you explained this, I thought my Game Dev career was over… lol, just kidding. However, I was really frustrated and couldn’t understand it. For real for real, thanks a lot. Everything makes sense now, I did paused the video at 32:32 and tried it myself and was able to complete the practice. Then I did watch the video all the way until the end, although instead of creating the other 2 resources the same way, I just duplicated them on the FileSystem doc using the 1st resource and then changed the information in the Inspector doc.
Responding to your question: Do I know what “The sword of 1000 truths” is? The answer is no, but I looked it up and it comes from South Park Eps.#147 lol
Btw, is there any difference between the following 2 methods or ways of writing code? For example:
export(String) var color
export var color: String
Is there any advantages between the two?
Also, thanks for shearing a sneak peak of your game, it looks like you are creating something big, at least it looks massive to me lol.
To finish off I want to say that I consider myself lucky to have found this course and you guys. This has been the most enjoyable hour of my day so far and also the best video you have made (that I’ve see at least). You did an amazing job at explaining everything and again, I don’t mind the length of the video at all. I’m getting more and more exited about creating my own games now :)
I'm super glad to hear that the vid was helpful! Definitely makes it worth it.
Regarding the two ways of typing your export variables -> to my knowledge they will both work exactly the same way so its totally your preference. I dunno why I do the
export(String) var colorinstead of the
export var color: StringIt's just one of those things where once you get comfortable with one of those two styles, you tend to stick to it :D