Discuss Scratch

0neNerd
Scratcher
9 posts

How do I move costumes from xy in a list?

I am trying to make a xlights copy sorta thing, I want to know how to move a costume to the xy in a list.

I have an item in the list saying like “1 199” and I want my costume to move to these.

Thank you if you help me!
MookyE
Scratcher
100+ posts

How do I move costumes from xy in a list?

https://scratch.mit.edu/projects/639830430/
I made this project that may help
You can use the code
Just change the question/answer to a value from a list
0neNerd
Scratcher
9 posts

How do I move costumes from xy in a list?

MookyE wrote:

https://scratch.mit.edu/projects/639830430/
I made this project that may help
You can use the code
Just change the question/answer to a value from a list

I have been trying this on my project, I don't know what I am doing wrong.
Heres is the project: (it not public so its turbo link) https://turbowarp.org/639808347
It is “pixel-2”

Last edited by 0neNerd (Feb. 6, 2022 16:36:36)

deck26
Scratcher
1000+ posts

How do I move costumes from xy in a list?

You're using the same variable for the list item and the letter within that item.

I'm assuming you want letter 1 of item 1, then letter 2 of item 1, letter 3 of item 1 and so on. What you're doing is looking at letter 1 of item 1, letter 2 of item 2, letter 3 of item 3 etc.
0neNerd
Scratcher
9 posts

How do I move costumes from xy in a list?

deck26 wrote:

You're using the same variable for the list item and the letter within that item.

I'm assuming you want letter 1 of item 1, then letter 2 of item 1, letter 3 of item 1 and so on. What you're doing is looking at letter 1 of item 1, letter 2 of item 2, letter 3 of item 3 etc.
I fixed this but the thing still won't move to the spot it's meant to move to. I am now using a custom block which fixes this problem but still won't move the sprite
0neNerd
Scratcher
9 posts

How do I move costumes from xy in a list?

0neNerd wrote:

deck26 wrote:

You're using the same variable for the list item and the letter within that item.

I'm assuming you want letter 1 of item 1, then letter 2 of item 1, letter 3 of item 1 and so on. What you're doing is looking at letter 1 of item 1, letter 2 of item 2, letter 3 of item 3 etc.
I fixed this but the thing still won't move to the spot it's meant to move to. I am now using a custom block which fixes this problem but still won't move the sprite
Nvm I just got this fixed.
Thanks for the help!

Powered by DjangoBB