Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » UNABLE TO DISPLAY COSTUME NAME IN LIST
- JakieMcLite
- New to Scratch
2 posts
UNABLE TO DISPLAY COSTUME NAME IN LIST
For a game I want different items to fly along the screen and as they do, their costume names are added on a list so that the user can check what the items were at the end. But I can only display the Costume number in the list. (The costumes are selected randomly ever time it flies past.)
So on the end product I am left with a list that says:
ITEMS:
1 | 3
2 | 1
3 | 2
4 | 5
when really I want it to display the actual costume name (not number) like this:
ITEMS:
1 | Carrot
2 | Beetroot
3 | Pie
4 | Broccoli
But all I can do is add the number to the list.
Is there any block I can use or way I can get around this?
My browser / operating system: Windows 7, Chrome 33.0.1750.154, Flash 12.0 (release 0)
add (costume #) to [list v]
So on the end product I am left with a list that says:
ITEMS:
1 | 3
2 | 1
3 | 2
4 | 5
when really I want it to display the actual costume name (not number) like this:
ITEMS:
1 | Carrot
2 | Beetroot
3 | Pie
4 | Broccoli
But all I can do is add the number to the list.
Is there any block I can use or way I can get around this?
My browser / operating system: Windows 7, Chrome 33.0.1750.154, Flash 12.0 (release 0)
- UniMog
- Scratcher
58 posts
UNABLE TO DISPLAY COSTUME NAME IN LIST
Hi JakieMcLite
Try
Try
([costume name v] of [Sprite1 v])
- JakieMcLite
- New to Scratch
2 posts
UNABLE TO DISPLAY COSTUME NAME IN LIST
Thank you this works fine!
- Discussion Forums
- » Help with Scripts
- » UNABLE TO DISPLAY COSTUME NAME IN LIST