Discuss Scratch
- Discussion Forums
- » Suggestions
- » Scratch Workaround Guide VII
- Little_Mittle12345
- Scratcher
100+ posts
Scratch Workaround Guide VII
Method 3 (real workaround)Such as? Could you add a workaround for “when stop sign clicked”
-
There are two methods (with reset timer and without reset timer).
Method 1 (thanks to the Scratch Wiki)when green flag clicked
forever
reset timer
end
when [timer v] > (0.1)
...
Method 2when green flag clicked
forever
set [timer v] to (timer)
end
when [timer v] > (timer:: variables)
...
when green flag clicked
forever
reset timer
end
when [timer v] > (0.1)
do something :: #080808
when [timer v] > (0.1)
forever
reset timer
bfiwurbviubr vkjrnrgiorbgouebijernerjo
e, No Flash version detectededw, No Flash version detecteddw, No Flash version detectedda, No Flash version detected, No Flash version detectedd, No Flash version detectedwa, No Flash version detectedd, No Flash version detecteds, No Flash version detectedd, No Flash version detectedawd, No Flash version detectedwasw
move ()ewd steps
move (aw) steps
move (w) steps
move (dewd) steps
move () steps
move (wad) steps
move () steps
move () steps
move () steps
- -ErrorPurpl_157
- Scratcher
100+ posts
Scratch Workaround Guide VII
Could you add a workaround for “when stop sign clicked”
when green flag clicked
forever
set [Stop v] to ((Timer)+[1]) :: variables
end
when [Timer v] > (Stop)
…
Last edited by -ErrorPurpl_157 (Oct. 15, 2022 02:56:14)
No signature currently stored in profile. (we all know that’s cap)
Technoblade Never Dies -Everyone
==================================
My old account ≈> TheRealAGJ
Want to make the NYC subway? ≈> Click Here
This is how I make mockups ≈> Over Here
==================================
- Little_Mittle12345
- Scratcher
100+ posts
Scratch Workaround Guide VII
workaround for
<this sprite holding?:: sensing
when this sprite clicked
set [l v] to [1]
wait until <not <mouse down?>
set [l v] to (0)
<(l) = (1)>// sprite holding?
Last edited by Little_Mittle12345 (Oct. 26, 2022 21:11:42)
bfiwurbviubr vkjrnrgiorbgouebijernerjo
e, No Flash version detectededw, No Flash version detecteddw, No Flash version detectedda, No Flash version detected, No Flash version detectedd, No Flash version detectedwa, No Flash version detectedd, No Flash version detecteds, No Flash version detectedd, No Flash version detectedawd, No Flash version detectedwasw
move ()ewd steps
move (aw) steps
move (w) steps
move (dewd) steps
move () steps
move (wad) steps
move () steps
move () steps
move () steps
- randomguy3513
- Scratcher
1000+ posts
Scratch Workaround Guide VII
Actually, that doesn't work you need a Not <> boolean workaround for<this sprite clicked?:: sensingwhen this sprite clicked
set [l v] to [1]
wait until <mouse down?>
set [l v] to (0)
<(l) = (1)>// sprite clicked?
(Male) (He/Him) (2000+ posts) (5 Years)
Banner by depresso-boiyo, check him out!
Ctrl+shift+down to check out my projects!
Thanks for scrolling; if you like what I do, please follow me!
- Little_Mittle12345
- Scratcher
100+ posts
Scratch Workaround Guide VII
workaround for<this sprite clicked?:: sensingwhen this sprite clicked
set [l v] to [1]
wait (0) secs
set [l v] to (0)
<(l) = (1)>// sprite clicked?
Last edited by Little_Mittle12345 (Oct. 26, 2022 21:10:52)
bfiwurbviubr vkjrnrgiorbgouebijernerjo
e, No Flash version detectededw, No Flash version detecteddw, No Flash version detectedda, No Flash version detected, No Flash version detectedd, No Flash version detectedwa, No Flash version detectedd, No Flash version detecteds, No Flash version detectedd, No Flash version detectedawd, No Flash version detectedwasw
move ()ewd steps
move (aw) steps
move (w) steps
move (dewd) steps
move () steps
move (wad) steps
move () steps
move () steps
move () steps
- modesties
- Scratcher
100+ posts
Scratch Workaround Guide VII
(backdrop count ::looks)Workaround:
define backdrop countCan do something similar if you want the number of costumes
set [save v] to (backdrop [number v] ::looks)
switch backdrop to (join [0] []) //second input is blank
set [backdrops v] to (backdrop [number v] ::looks)
switch backdrop to (save)
My other accounts: @fireflyhero @selfexplanatory @medians
add life to [list v] ::listFun fact: The first game I ever hated was made by EA years ago. Not surprising.
(sadness::sensing)
set sadness to () ::sensing
change sadness by () ::sensing
<sadness is ()? ::sensing>// workaround:
<(sadness ::sensing) = []>
- 1080GBA
- Scratcher
500+ posts
Scratch Workaround Guide VII
i was competing for the 6th when a dude name Nezon took it and did nothing then gave it to this guy. the former guides' format was untidy and was triggering me as a perfectionist. Yeah. So i guess i will have to wait a year or two for the next takeover Can I make the 8th workaround guide?
i did that already(backdrop count ::looks)Workaround:define backdrop countCan do something similar if you want the number of costumes
set [save v] to (backdrop [number v] ::looks)
switch backdrop to (join [0] []) //second input is blank
set [backdrops v] to (backdrop [number v] ::looks)
switch backdrop to (save)
Last edited by 1080GBA (Nov. 8, 2022 15:23:53)
Follow 1080GBA forever::#1080ba hat⠀
Made by 1080GBA. All copyrights reserved.
————————————————————————————————————————————————————————————————————
self made custom cat block
————————————————————————————————————————————————————————————————————
3000th post in topic
500th post of myself
————————————————————————————————————————————————————————————————————
(((((((((((KING::#ff0000 ring)::#ff8800 ring)::#ffff00 ring)::#88ff00 ring)::#00ff88 ring)::#00ffff ring)::#0088ff ring)::#0000ff ring)::#8800ff ring)::#ff00ff ring)::#ff0088 ring)————————————————————————————————————————————————————————————————————
<<<<<<<<1080GBA::#000>::#222>::#444>::#666>::#888>::#aaa>::#ccc>::#eee>————————————————————————————————————————————————————————————————————
- 1080GBA
- Scratcher
500+ posts
Scratch Workaround Guide VII
COME ON BRUH ITS NOT THAT COMPLICATED workaround for<this sprite holding?:: sensingwhen this sprite clicked
set [l v] to [1]
wait until <not <mouse down?>
set [l v] to (0)
<(l) = (1)>// sprite holding?
<this sprite holding?::sensing>dont overthink it brooooooooo
<<touching [mouse-pointer v] ?> and <mouse down?>>
Follow 1080GBA forever::#1080ba hat⠀
Made by 1080GBA. All copyrights reserved.
————————————————————————————————————————————————————————————————————
self made custom cat block
————————————————————————————————————————————————————————————————————
3000th post in topic
500th post of myself
————————————————————————————————————————————————————————————————————
(((((((((((KING::#ff0000 ring)::#ff8800 ring)::#ffff00 ring)::#88ff00 ring)::#00ff88 ring)::#00ffff ring)::#0088ff ring)::#0000ff ring)::#8800ff ring)::#ff00ff ring)::#ff0088 ring)————————————————————————————————————————————————————————————————————
<<<<<<<<1080GBA::#000>::#222>::#444>::#666>::#888>::#aaa>::#ccc>::#eee>————————————————————————————————————————————————————————————————————
- 1080GBA
- Scratcher
500+ posts
Scratch Workaround Guide VII
Could you add a workaround for “when stop sign clicked”when green flag clicked
forever
set [Stop v] to ((Timer)+[1]) :: variables
end
when [Timer v] > (Stop)
…
when [timer v] > (0)
reset timer //nothing is allowed to be attached below
when [timer v] > (0)
do something::#888888
Follow 1080GBA forever::#1080ba hat⠀
Made by 1080GBA. All copyrights reserved.
————————————————————————————————————————————————————————————————————
self made custom cat block
————————————————————————————————————————————————————————————————————
3000th post in topic
500th post of myself
————————————————————————————————————————————————————————————————————
(((((((((((KING::#ff0000 ring)::#ff8800 ring)::#ffff00 ring)::#88ff00 ring)::#00ff88 ring)::#00ffff ring)::#0088ff ring)::#0000ff ring)::#8800ff ring)::#ff00ff ring)::#ff0088 ring)————————————————————————————————————————————————————————————————————
<<<<<<<<1080GBA::#000>::#222>::#444>::#666>::#888>::#aaa>::#ccc>::#eee>————————————————————————————————————————————————————————————————————
- Little_Mittle12345
- Scratcher
100+ posts
Scratch Workaround Guide VII
actually most people think thats the workaround it doesent work perfectlyCOME ON BRUH ITS NOT THAT COMPLICATED workaround for<this sprite holding?:: sensingwhen this sprite clicked
set [l v] to [1]
wait until <not <mouse down?>
set [l v] to (0)
<(l) = (1)>// sprite holding?<this sprite holding?::sensing>dont overthink it brooooooooo
<<touching [mouse-pointer v] ?> and <mouse down?>>
bfiwurbviubr vkjrnrgiorbgouebijernerjo
e, No Flash version detectededw, No Flash version detecteddw, No Flash version detectedda, No Flash version detected, No Flash version detectedd, No Flash version detectedwa, No Flash version detectedd, No Flash version detecteds, No Flash version detectedd, No Flash version detectedawd, No Flash version detectedwasw
move ()ewd steps
move (aw) steps
move (w) steps
move (dewd) steps
move () steps
move (wad) steps
move () steps
move () steps
move () steps
- 1080GBA
- Scratcher
500+ posts
Scratch Workaround Guide VII
wrongSuch as? Could you add a workaround for “when stop sign clicked”
-
There are two methods (with reset timer and without reset timer).
Method 1 (thanks to the Scratch Wiki)when green flag clicked
forever
reset timer
end
when [timer v] > (0.1)
...
Method 2when green flag clicked
forever
set [timer v] to (timer)
end
when [timer v] > (timer:: variables)
...
your code will start as soon as the programme starts
you're basically doing
When project is running::events hat
Follow 1080GBA forever::#1080ba hat⠀
Made by 1080GBA. All copyrights reserved.
————————————————————————————————————————————————————————————————————
self made custom cat block
————————————————————————————————————————————————————————————————————
3000th post in topic
500th post of myself
————————————————————————————————————————————————————————————————————
(((((((((((KING::#ff0000 ring)::#ff8800 ring)::#ffff00 ring)::#88ff00 ring)::#00ff88 ring)::#00ffff ring)::#0088ff ring)::#0000ff ring)::#8800ff ring)::#ff00ff ring)::#ff0088 ring)————————————————————————————————————————————————————————————————————
<<<<<<<<1080GBA::#000>::#222>::#444>::#666>::#888>::#aaa>::#ccc>::#eee>————————————————————————————————————————————————————————————————————
- 1080GBA
- Scratcher
500+ posts
Scratch Workaround Guide VII
oh ‘this sprite ’ holding whatactually most people think thats the workaround it doesent work perfectlyCOME ON BRUH ITS NOT THAT COMPLICATED workaround for<this sprite holding?:: sensingwhen this sprite clicked
set [l v] to [1]
wait until <not <mouse down?>
set [l v] to (0)
<(l) = (1)>// sprite holding?<this sprite holding?::sensing>dont overthink it brooooooooo
<<touching [mouse-pointer v] ?> and <mouse down?>>
Follow 1080GBA forever::#1080ba hat⠀
Made by 1080GBA. All copyrights reserved.
————————————————————————————————————————————————————————————————————
self made custom cat block
————————————————————————————————————————————————————————————————————
3000th post in topic
500th post of myself
————————————————————————————————————————————————————————————————————
(((((((((((KING::#ff0000 ring)::#ff8800 ring)::#ffff00 ring)::#88ff00 ring)::#00ff88 ring)::#00ffff ring)::#0088ff ring)::#0000ff ring)::#8800ff ring)::#ff00ff ring)::#ff0088 ring)————————————————————————————————————————————————————————————————————
<<<<<<<<1080GBA::#000>::#222>::#444>::#666>::#888>::#aaa>::#ccc>::#eee>————————————————————————————————————————————————————————————————————
- _nix
- Scratcher
1000+ posts
Scratch Workaround Guide VII
I added a workaround for “mouse dragging this sprite”! That's the name I use for what you guys have been calling “this sprite holding”
Since getting it to work with the “set drag mode: draggable” block from the Sensing category was kinda tricky, I tried a few different approaches before settling on one which was more complicated but (as far as I can tell) always works. If you wanna check out those other methods and all the details, I made a demo project showing them off: Drag detection methods
Thanks for the discussion about this block!
Since getting it to work with the “set drag mode: draggable” block from the Sensing category was kinda tricky, I tried a few different approaches before settling on one which was more complicated but (as far as I can tell) always works. If you wanna check out those other methods and all the details, I made a demo project showing them off: Drag detection methods
Thanks for the discussion about this block!
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20 21, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- 1080GBA
- Scratcher
500+ posts
Scratch Workaround Guide VII
sticky takeover when
!
Follow 1080GBA forever::#1080ba hat⠀
Made by 1080GBA. All copyrights reserved.
————————————————————————————————————————————————————————————————————
self made custom cat block
————————————————————————————————————————————————————————————————————
3000th post in topic
500th post of myself
————————————————————————————————————————————————————————————————————
(((((((((((KING::#ff0000 ring)::#ff8800 ring)::#ffff00 ring)::#88ff00 ring)::#00ff88 ring)::#00ffff ring)::#0088ff ring)::#0000ff ring)::#8800ff ring)::#ff00ff ring)::#ff0088 ring)————————————————————————————————————————————————————————————————————
<<<<<<<<1080GBA::#000>::#222>::#444>::#666>::#888>::#aaa>::#ccc>::#eee>————————————————————————————————————————————————————————————————————
- _nix
- Scratcher
1000+ posts
Scratch Workaround Guide VII
What do you mean? sticky takeover when!
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20 21, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- INSERT-USER_NAME
- Scratcher
1000+ posts
Scratch Workaround Guide VII
I found a workaround for the nonexistent when <> block. I'm not sure where it would go, but I'm putting it here just in case. This is the workaround:
when [timer v] > ((timer) - <key [space v] pressed?>
- yavuz61035
- Scratcher
500+ posts
Scratch Workaround Guide VII
there needs to be a minor change here:
200 is actually red and 0 has no effect
you can see this by how white tints red slightly
200 is back to normal, so 200 and 0 make the same result. You can use the “mod” operators block to keep the value within a specific range, as long as you know at what value it loops……Remember that some effects, like color, “loop” at a certain point - 100 is completely the opposite colors,
200 is actually red and 0 has no effect
you can see this by how white tints red slightly
i am yavuz61035!
i like birds (especially budgies) | my studio is here! | a project i was working on, mine game! | pronouns: he/him/they/blabla ok just use anything please stop reading this part | my 100th post! | be moist wet | musicROCKS013 predicts the future
fun fact: my pfp has pride month forever
a link
little social experiment corner:
increase gen thingy:
gen: 14
gen: 14
gen: 11
- _nix
- Scratcher
1000+ posts
Scratch Workaround Guide VII
Oh wow, this is interesting—I never noticed before. I should have checked that! It looks like the “color” effect overall tints anything, including white, with the color specified. Zero is just the special “disable me” value: it WOULD be the same effect as 200, which you can see by how 200 = 400 = 600 (and 50 = 250 = 450 = 650) etc. I'll see if I can work a note about this in. Thanks! there needs to be a minor change here:200 is back to normal, so 200 and 0 make the same result. You can use the “mod” operators block to keep the value within a specific range, as long as you know at what value it loops……Remember that some effects, like color, “loop” at a certain point - 100 is completely the opposite colors,
200 is actually red and 0 has no effect
you can see this by how white tints red slightly
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20 21, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- _nix
- Scratcher
1000+ posts
Scratch Workaround Guide VII
Okay, this is actually really cool. :D I found a workaround for the nonexistent when <> block. I'm not sure where it would go, but I'm putting it here just in case. This is the workaround:when [timer v] > ((timer) - <key [space v] pressed?>
I've added it, with credits, to the top of the Events & Control section! Since it's the first custom Events block. Thank you!
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20 21, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- INSERT-USER_NAME
- Scratcher
1000+ posts
Scratch Workaround Guide VII
Alright, you're welcome!Okay, this is actually really cool. :D I found a workaround for the nonexistent when <> block. I'm not sure where it would go, but I'm putting it here just in case. This is the workaround:when [timer v] > ((timer) - <key [space v] pressed?>
I've added it, with credits, to the top of the Events & Control section! Since it's the first custom Events block. Thank you!
Last edited by INSERT-USER_NAME (Nov. 16, 2022 22:41:31)
- Discussion Forums
- » Suggestions
- » Scratch Workaround Guide VII