This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » Deleting items in list (not the length but in the orange rectangles)

#1 2008-12-30 11:01:31

fuz50
Scratcher
Registered: 2008-09-19
Posts: 100+

Deleting items in list (not the length but in the orange rectangles)

I'm making a game where I need to delete in the orange rectangles in the list. Not the numbers in the grey column, I mean by typing things in a delete block to delete that item in the list. Can you help me?


http://img10.imageshack.us/img10/7404/cooltext529102298.jpg
http://siggen.toontown-click.de/sig1.pnghttp://siggen.toontown-click.de/sig2.png

Offline

 

#2 2008-12-30 12:38:56

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Deleting items in list (not the length but in the orange rectangles)

What do you mean?

If you're trying to delete number, say, 9 of 14, just use the "delete number [9] of [list]" block.

Offline

 

#3 2008-12-30 13:24:55

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Deleting items in list (not the length but in the orange rectangles)

coolstuff wrote:

What do you mean?

If you're trying to delete number, say, 9 of 14, just use the "delete number [9] of [list]" block.

Yeah. Or if theres letters A-N, If you want to change I to M (for some reason) you do "replace number [9] of [list] with [i]


http://i.imgur.com/WBkM2QQ.png

Offline

 

#4 2008-12-30 17:34:37

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Deleting items in list (not the length but in the orange rectangles)

fuz50 wrote:

I'm making a game where I need to delete in the orange rectangles in the list. Not the numbers in the grey column, I mean by typing things in a delete block to delete that item in the list. Can you help me?

Oh... I think I understand. Say you have a list "animals"

1 Zebra
3 Dog
2 Cat
4 Lion
5 monkey

You want to delete "Dog". So it would result in

1 Zebra
2 Cat
3 Lion
4 monkey

You could do that by the following script I put together:

http://resources.scratchr.org/adminAccess/upload/delete.gif


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#5 2009-01-01 01:35:57

toastermath
Scratcher
Registered: 2008-12-30
Posts: 24

Re: Deleting items in list (not the length but in the orange rectangles)

whoh, i don't have the problem, but that is confusing!

Offline

 

#6 2009-01-01 08:21:04

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Deleting items in list (not the length but in the orange rectangles)

I think he wants a different look to the list displayer. Something like this? (Edited image)
http://img266.imageshack.us/img266/4958/38893706lo5.gif

Last edited by bhz (2009-01-01 08:21:23)

Offline

 

#7 2009-01-20 21:16:32

EveningSage
Scratcher
Registered: 2009-01-10
Posts: 65

Re: Deleting items in list (not the length but in the orange rectangles)

JSO that is a very good solution I was wondering about that myself for use with an RPG inventory. I might use that script(if you do not mind) in my own games.

Offline

 

#8 2009-01-21 09:56:18

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Deleting items in list (not the length but in the orange rectangles)

EveningSage wrote:

JSO that is a very good solution I was wondering about that myself for use with an RPG inventory. I might use that script(if you do not mind) in my own games.

Ofcourse you can use it  big_smile


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 
  • Index
  •  » Advanced Topics
  •  » Deleting items in list (not the length but in the orange rectangles)

Board footer