Discuss Scratch
- Discussion Forums
- » Requests
- » insert thing at 1 of list
- AbdulSamadSiddiqui
- Scratcher
5 posts
insert thing at 1 of list
this is the project
i am trying to make a python shell project in scratch but i am having trouble
i made a text engine
so basically i made costumes for all letters and i made the flashing line so when you type it considers as a letter and the flashing line moves
this is just an example
the text engine:
and the flashing line(i did the flashing already):
it should work so that it writes in the list
but the list is like this:
i write abcd:
(list)
1.d
2.c
3.b
4.a
i want it to be like this:
(list)
1.abcd
so if you help me I would be very thankful
i am trying to make a python shell project in scratch but i am having trouble
i made a text engine
so basically i made costumes for all letters and i made the flashing line so when you type it considers as a letter and the flashing line moves
this is just an example
the text engine:
when I receive [start v]
if <key [a v] pressed?> then
switch costume to [a v]
stamp
change x by (15)
switch costume to [blank v]
broadcast [next v]
insert [a] at (1 v) of [list v]
wait (0.5) secs
end
and the flashing line(i did the flashing already):
when I receive [ next v]
change x by (15)
it should work so that it writes in the list
but the list is like this:
i write abcd:
(list)
1.d
2.c
3.b
4.a
i want it to be like this:
(list)
1.abcd
so if you help me I would be very thankful
Last edited by AbdulSamadSiddiqui (Nov. 5, 2020 19:25:48)
- SolomonS3
- Scratcher
3 posts
insert thing at 1 of list
BBBBBB
BBBBBBBB RRRRRRRRR OOOOOOOO
BBBBBBBBBB RRRRRRRRRRR OOOOOOOOOO
BBB BBBB RRRRRRRRRRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBBBBBBBBBB RRR RRRR OOO OOO
BBBBBBBB RRR RRRR OOO OOO
BBBBBBBBBBB RRRRRRRRRRRR OOO OOO
BBB BBBB RRRRRRRRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBBBBBBBBB RRR RRRR OOOOOOOOOO
BBBBBBBB RRR RRRR OOOOOOOO
BBBBBBBB RRRRRRRRR OOOOOOOO
BBBBBBBBBB RRRRRRRRRRR OOOOOOOOOO
BBB BBBB RRRRRRRRRRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBBBBBBBBBB RRR RRRR OOO OOO
BBBBBBBB RRR RRRR OOO OOO
BBBBBBBBBBB RRRRRRRRRRRR OOO OOO
BBB BBBB RRRRRRRRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBB BBBB RRR RRRR OOO OOO
BBBBBBBBBB RRR RRRR OOOOOOOOOO
BBBBBBBB RRR RRRR OOOOOOOO
- SolomonS3
- Scratcher
3 posts
insert thing at 1 of list
can't help you, but the least I can do is this.
- -CloudGate-
- Scratcher
1000+ posts
insert thing at 1 of list
just do
insert [] at (1 v) of [list v]also, this should be in the help with scripts forum, please post there if you need help with scripts
- AbdulSamadSiddiqui
- Scratcher
5 posts
insert thing at 1 of list
@-CloudGate- that is what i did and look here
- Discussion Forums
- » Requests
- » insert thing at 1 of list