Discuss Scratch

Quasarcoder
Scratcher
9 posts

Help with coding an outro :)

I am kind of new so I´m not that good at coding. I j=kind of copy of examples. I want an outro for my profile and I need help with the script and art.
inbob1
Scratcher
18 posts

Help with coding an outro :)

So if you want to create a outro in one sprite I would recommend doing something like this
where you have one script
when I receive [outro v]
set [ var] to [1]
repeat (10)
create clone of [ myself]
change [ var] by (1)
end
where var is a local variable. And the another script like:
when I start as a clone
if <(var) = [1]> then
do something
else
if <(var) = [2]> then
do something
else
do something
end
end
and so on. However if you want multiple clones to do the same thing, you can use the contains block.
<(12345) contains (var)?>
which will be true if var is equal to 1,2,3,4,5,12,23,234,etc.
Also, that block is meant to be green

Last edited by inbob1 (Dec. 8, 2020 16:57:44)

Quasarcoder
Scratcher
9 posts

Help with coding an outro :)

@inbob1 so that is the sprite code and I just duplicate if I want 2 sprites in it?
TheCodeMaster654
Scratcher
23 posts

Help with coding an outro :)

I can make you an outro if you want, I can also teach you
inbob1
Scratcher
18 posts

Help with coding an outro :)

Quasarcoder wrote:

@inbob1 so that is the sprite code and I just duplicate if I want 2 sprites in it?
You probably don't need two sprites because of cloning, so you just have do something be what it is. Also, if you haven't seen this link it may help.

Last edited by inbob1 (Dec. 10, 2020 17:32:45)

Quasarcoder
Scratcher
9 posts

Help with coding an outro :)

@TheCodeMaster654 you don´t have to do it for me but yeah can give some detail on how to make an outro?
Quasarcoder
Scratcher
9 posts

Help with coding an outro :)

@inbob1 thanks that is very helpful
inbob1
Scratcher
18 posts

Help with coding an outro :)

Quasarcoder wrote:

@inbob1 thanks that is very helpful
No problem.

Powered by DjangoBB