Referring to Sprites iteratively

Hi guys. I’m trying to store multiple sprites’ positions in a firebase database. I’m trying to minimize the number of blocks I’m using. My sprites are names “Sprite1” through “Sprite48” so I’m looping through 48 times and changing the name in the sprite x and sprite y block on the fly. Below is my current block:

Unfortunately, the sprites don’t accept being referred to in an iterative manner. Any suggestions?
Thanks,

Doug

Hmm…that’s a bug on our end (might be a bit before it gets fixed though). For now you can use the “all sprites in” block.

https://x.thunkable.com/copy/bc90301eb676d70d905dae4ecb43cb30

Thanks Paul. I’ll give that a shot!

Doug

@paulmw that did the trick! Here’s my block. Saves the sprites iteratively no problem!
image