S
SRJProd
Guest
Heya,
I've spent the past two days looking for a solution to this so this is really my last desperate measure. x)
Three days ago I started following Friendly Cosmonaut's Farming RPG tutorial series and all went (mostly) smoothly. But now I've run into a problem that (search as I might) I can't seem to solve. So far every time I ran into an error I managed to find the solution (even if frustration occurred) and after all, finding solutions to problems is what programming is about. But in this situation I don't know what to look for.
The issue (or issues, there are really 2, though I think they're probably linked) are as follows:
I re-watched the videos, compared the code, even googled the issue, nothing.
So as to not clutter the page I uploaded the source code to pastebin:
For reference here's a link to the tutorial series I was following.
I've spent the past two days looking for a solution to this so this is really my last desperate measure. x)
Three days ago I started following Friendly Cosmonaut's Farming RPG tutorial series and all went (mostly) smoothly. But now I've run into a problem that (search as I might) I can't seem to solve. So far every time I ran into an error I managed to find the solution (even if frustration occurred) and after all, finding solutions to problems is what programming is about. But in this situation I don't know what to look for.
The issue (or issues, there are really 2, though I think they're probably linked) are as follows:
- In the inventory everything works fine except the top left item which cannot be grabbed, nor can any item of the same type anywhere else in the inventory. (Say the item in the top left is a potato, I won't be able to select any potatoes)
- The second issue is that when I drop an item, when I go to pick it up, if I don't have the item already in my inventory it sends me "Grid 4, index out of bounds writing [0,16] - size is [2,16]" in the Output and the item just hovers by my player's feet.
I re-watched the videos, compared the code, even googled the issue, nothing.
So as to not clutter the page I uploaded the source code to pastebin:
inventory - Create Event : pastebin.com/6b2JHRfV
inventory - Draw GUI : pastebin.com/wakPFMLf
inventory - Step Event : pastebin.com/emyvGEm2
Note that "inventory" is the object's name.inventory - Draw GUI : pastebin.com/wakPFMLf
inventory - Step Event : pastebin.com/emyvGEm2
For reference here's a link to the tutorial series I was following.
Really hope someone can help,
Thanks in advance and best regards,
Sebastien
Thanks in advance and best regards,
Sebastien