[Solved] Need some help with Reward and ruination


#1

What do you guys think? The issue appears to be the last line of code; is it supposed to have parentheses?

Thanks guys.


#2

Did you try using parentheses?


#3

No, it’s just that the arrangement was incorrect. It was supposed to be like
itemPos = item.pos.x + " " + item.pos.y. (Hint: The format was in the first block of code for attacking the enemies.)


#4

I have… I’ve tried multiple variations with parentheses. Were you able to make this work?


#5

Isn’t that exactly what I had? I can’t see any differences between this and the first block of code. Can you try explaining again?


#6

You have itemPos = item.pos.x " " + item.pos.y.


#7

The previous commenter said it needed to be itemPos.

I’m also not seeing any difference between the first block of code and the second. The line that is failing doesn’t appear different from the previous.


#8

Nevermind… Got it…