
seems Jagg's main problem is that it's using a scifi pc from 1982
Category All / All
Species Unspecified / Any
Size 581 x 800px
File Size 223.2 kB
Do you want help with the code, or did you just mean to do a funny comic about your issue ?
(I agree with ablative here, the purpose of functions is to be applied to any argument str of type string, hence define the function with 'func myfunk(str)' and later on do 'myfunk("res://funnymemelol.png")' to use the function)
(I agree with ablative here, the purpose of functions is to be applied to any argument str of type string, hence define the function with 'func myfunk(str)' and later on do 'myfunk("res://funnymemelol.png")' to use the function)
Functions are reusable blocks of code, so when creating one, if you want to allow the person using the function (in this case, that would also be you lol) to give it some outside data, it needs to be a variable, not data that's already defined. So, when creating "myFunk", if you want the user to be able to provide a String that's used inside the function, it's going to look like "func myFunk(stringArg)" and would be run by doing "myFunk("res://path/to/file.png")". Unfortunately, I think dynamically typed languages are hell for a beginner to learn, because of the ambiguity of what type of data a variable contains at any given time, and the extremely hard to track down bugs that can cause. It's the language being used though, so my advice is to just keep tinkering with it and learning bit by bit. It takes a while, and can be frustrating at times, but at least for me, the motivation to be able to get the computer to perform complex, arbitrary actions of my choosing got me through that phase.
Comments