Discuss Scratch

therealpsy
Scratcher
1000+ posts

i request new block

my script for my outro is not working,though i saw nothing wrong w/ it. Here is the script:
when green flag clicked
forever

if <(size) = [ 231]> then

forever

change size by (1)
if <(size) = [ 100]> then
forever

change size by (-1)
end


end

end

end

end
its meant to make the outro grow then shrink forever but it only grows and shrinks one time.
I request a block that makes the script go back to the beginning once it reaches the end
or a method that achieves the same goal

Last edited by therealpsy (Aug. 21, 2014 17:20:02)


therealpsy
Scratcher
1000+ posts

i request new block

please help me

Last edited by therealpsy (Aug. 21, 2014 17:18:45)


pianowizard
Scratcher
23 posts

i request new block

So do you still want it to shrink and grow?

when green flag clicked
forever

if <(size) > [100]> then /// Grow
forever

change size by (1)
end

if <(size) < [100]> then /// Shrink
forever
change size by (-1)
end

forever /// Go Back to Beginning

if <(size) = [0]> then
broadcast [beginning v]
end


when I receive [beginning v]
switch backdrop to [beginning v] and wait

end


end

The “switch backdrop” can be switched to whatever you do to get to the beginning

Not sure if this is what you want

pianowizard
Scratcher
23 posts

i request new block

Make all of the “ifs” seperate

and change the size > 100 to size > 231

Last edited by pianowizard (Aug. 21, 2014 18:14:13)


Cyoce
Scratcher
500+ posts

i request new block





therealpsy wrote:

my script for my outro is not working,though i saw nothing wrong w/ it. Here is the script:
when green flag clicked
forever

if <(size) = [ 231]> then

forever

change size by (1)
if <(size) = [ 100]> then
forever

change size by (-1)
end


end

end

end

end
its meant to make the outro grow then shrink forever but it only grows and shrinks one time.
I request a block that makes the script go back to the beginning once it reaches the end
or a method that achieves the same goal
WWAAAAAAYY to many forevers


when green flag clicked
repeat until <(size) = [ 231]>
change size by (1)
end
repeat until <(size) = [0]>
change size by (-1)
end

Powered by DjangoBB