I am a noob in this coding world, so I may be coding totally wrong. But, in case I am not, perhaps I have come across coding bug?
As I try to set the values of X and Y for my variable for “picking up items,” specifically coins, I get an error message telling me my “undefined is not an object.” However, this is the same technique demonstrated on the video tutorial, so I am very confused and a bit frustrated as to why this code is not working.
Any feedback would be most appreciated.
ps: i have written the x and y value lower case not upper case as shown in the pic, if that is in any case a factor to the problem.
Here is the pic…