Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I added a couple of items to the shop, but they're not being displayed
- SkullOfRick
-
New Scratcher
2 posts
I added a couple of items to the shop, but they're not being displayed
I know it's really basic, and sorry for that. I can't figure it out on my own, I've tried for a couple of hours now 
I copied an existing project which had 17 items in the shop.
I added items with costume ID 18 to 39 to the Upgrades sprite
I updated the variables Upgrades.power, Upgrades.price, etc. to have 39 elements instead of 17
The new items are not showing in the shop. What have I missed? I don't see 17 hardcoded anywhere, not sure why it's displaying only the original 17.
Here is the project:
https://scratch.mit.edu/projects/854216691
Thank you in advance!

I copied an existing project which had 17 items in the shop.
I added items with costume ID 18 to 39 to the Upgrades sprite
I updated the variables Upgrades.power, Upgrades.price, etc. to have 39 elements instead of 17
The new items are not showing in the shop. What have I missed? I don't see 17 hardcoded anywhere, not sure why it's displaying only the original 17.
Here is the project:
https://scratch.mit.edu/projects/854216691
Thank you in advance!
- kkidslogin
-
Scratcher
1000+ posts
I added a couple of items to the shop, but they're not being displayed
I know it's really basic, and sorry for that. I can't figure it out on my own, I've tried for a couple of hours nowIt's likely the list wasn't saved. This is a slight bug with Scratch 3.0. You'll need to save the project (You can force it by using Ctrl+S on Windows or Command+S on Mac) before you hide the list. To be safe, double-check the list afterwards.
I copied an existing project which had 17 items in the shop.
I added items with costume ID 18 to 39 to the Upgrades sprite
I updated the variables Upgrades.power, Upgrades.price, etc. to have 39 elements instead of 17
The new items are not showing in the shop. What have I missed? I don't see 17 hardcoded anywhere, not sure why it's displaying only the original 17.
Here is the project:
https://scratch.mit.edu/projects/854216691
Thank you in advance!
Reporting to be moved to Help with Scripts.
- LittleGreyCells
-
Scratch Team
1000+ posts
I added a couple of items to the shop, but they're not being displayed
I'll move this over to Help With Scripts for you 

- SkullOfRick
-
New Scratcher
2 posts
I added a couple of items to the shop, but they're not being displayed
Thank you for the suggestion, and thank you for moving it to the right forum.
It is definitely saved now, I re-saved, re-opened, double checked the lists, they all have 39 elements now, but I can still see only 17 elements.
It's as if the number of elements, or the height of menu is hardcoded somewhere, but I can't find where
It is definitely saved now, I re-saved, re-opened, double checked the lists, they all have 39 elements now, but I can still see only 17 elements.
It's as if the number of elements, or the height of menu is hardcoded somewhere, but I can't find where

- Link2358
-
Scratcher
100+ posts
I added a couple of items to the shop, but they're not being displayed
I found the glitch.
In the scroll down script within the upgrades sprite, there is an if statement which is blocking the scroll*.

After decreasing these values I found you could go further down.
I tried a few values and found that -660 worked best.
Good luck on your clicker
In the scroll down script within the upgrades sprite, there is an if statement which is blocking the scroll*.

After decreasing these values I found you could go further down.
I tried a few values and found that -660 worked best.
Good luck on your clicker

- Discussion Forums
- » Help with Scripts
-
» I added a couple of items to the shop, but they're not being displayed



