I need help with my Shop system and Coins system

Project link: https://c.gethopscotch.com/p/116m35onfa

When I get the new item it doesn’t give me coins when I sell.

I want my code to give me coins when I sell.



Notice how when I sold size I never got coins.

Thank you to whoever helps me.

4 Likes

do you want the code to gain coins or take away coins?
also welcome to the forum :)

2 Likes

I want it to gain coins.

Also thank you for welcoming me.

2 Likes

I don’t know why but when I sell size with the first item it works, but with the others it doesn’t.

2 Likes

okay, it looks like your project is in the filter right now. could you try describing the code to me? screenshots would be ideal, but since you’re a new user i’m not sure if you can post pictures yet.

also no problem :)

1 Like

i cannot view the code but i played the project and the first shrink ray appears to increase size by a negative number while the green one increases it by a positive number—could this have something to do with it?

3 Likes

Well when you press the shrink ray the size shrinks because you shrink so its supposed to shrink

4 Likes

Oh ok I’m going to try to do what you said.

4 Likes

IT WORKED THANK YOU SO MUCH!

I made a rookie mistake.

Thank you

3 Likes

Welcome to the hopscotch forum! Seems like you’ve already solved the problem - so you can click the check box on the post that has the solution :))

1 Like

Oh thank you

2 Likes

Thank you for welcoming me. :slight_smile:

1 Like