Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » i request new block
- 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:
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
when green flag clickedits meant to make the outro grow then shrink forever but it only grows and shrinks one time.
forever
if <(size) = [ 231]> then
forever
change size by (1)
if <(size) = [ 100]> then
forever
change size by (-1)
end
end
end
end
end
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?
The “switch backdrop” can be switched to whatever you do to get to the beginning
Not sure if this is what you want
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
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
WWAAAAAAYY to many forevers my script for my outro is not working,though i saw nothing wrong w/ it. Here is the script:when green flag clickedits meant to make the outro grow then shrink forever but it only grows and shrinks one time.
forever
if <(size) = [ 231]> then
forever
change size by (1)
if <(size) = [ 100]> then
forever
change size by (-1)
end
end
end
end
end
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
when green flag clicked
repeat until <(size) = [ 231]>
change size by (1)
end
repeat until <(size) = [0]>
change size by (-1)
end
- Discussion Forums
- » Help with Scripts
- » i request new block