This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-21 01:20:59

Liru
Scratcher
Registered: 2012-01-11
Posts: 1000+

Changing 1 letter/number in an item on a list?

So I'm working on a 2D minecraft type of thing, but I'm stuck with placing items, the list basically contains lots of items which are long lines of numbers, I just want to change one number.

I've already found out which number I want to change, I just need to change it. And the number can be in the middle of the list, so join blocks are not very convinient.

Offline

 

#2 2012-02-21 01:50:29

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Changing 1 letter/number in an item on a list?

replace item (1 v) of [list v] with [thing]
Tried that?  smile

EDIT: Oh, you want to change a specific number? Well, save the long chain of numbers into another temp list, then scroll through it to get to the number, do my replace thing. Then replace the line of numbers in the original with the new list.

Last edited by fg123 (2012-02-21 01:51:52)


Hai.

Offline

 

Board footer