Discuss Scratch

MapleSyrup911
Scratcher
83 posts

Custom loops on forum posts

How do you do the custom loop blocks on forum posts? This is what happens when I try.

custom loop attempt             .:: loop

end :: loop

What would you say if I was trans?
Haha, just kidding!

Unless?
_nix
Scratcher
1000+ posts

Custom loops on forum posts

The “::loop” syntax (if that's right) is pretty old and doesn't work anymore – you have to use curly braces now, like so:

for each [sprite v] {
say ([x position v] of (current item :: control))
} :: control
for each [sprite v] {
say ([x position v] of (current item :: control))
} :: control

As in the example, if you want to put your custom loop in a particular category, just stick the “:: (category)” after the closing brace (“}”)! Hope this helps

══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
MapleSyrup911
Scratcher
83 posts

Custom loops on forum posts

Thanks!

What would you say if I was trans?
Haha, just kidding!

Unless?
Zane_Mac
Scratcher
25 posts

Custom loops on forum posts

If [meet you v] is true {
say [HELLO!!!] for (2) secs
} ::control

NO WAY I MADE A CUSTOM LOOP

Last edited by Zane_Mac (Feb. 2, 2023 10:11:15)


This is my siggy below, i use it to protec forum identity thefts


If [Tomfooolery v] detected ::hat
repeat until <not <Tomfoolory detected?>>
broadcast [SECURITY!!!! v]
end
cookieclickerer33
Scratcher
1000+ posts

Custom loops on forum posts

Zane_Mac wrote:

If [meet you v] is true {
say [HELLO!!!] for (2) secs
} ::control

NO WAY I MADE A CUSTOM LOOP
Please don’t necropost, instead use the scratchblocks testing topic

Last edited by cookieclickerer33 (Feb. 2, 2023 16:27:32)


⠀ ⠀ I beat Mario 64 yay! ⠀⠀ ⠀ ⠀ ⠀ ⠀ I love you ivy & may :3
⠀ ⠀ ⠀ ⠀ ⠀ ⠀⠀ ⠀ ⠀GEOMETRY DASH

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ MecanX Disk 0 : Coming march 27th
byAdham
Scratcher
100+ posts

Custom loops on forum posts

for each [sprite v] {
say ([x position v] of (current item :: control))
} :: control
Just testing out @_nix code. Please don't look at this as copying.

Edit: Alright, it works. Thanks for providing this sample!

Last edited by byAdham (May 28, 2023 16:25:54)


when start up :: events hat
say [Hello. I am the creator of Forum Blocks. I'm going to make a Doc on all of them. But for now... Good bye!] for (choice) seconds :: looks
shut down :: control cap

<((({byAdham :: motion} :: ring motion) :: ring custom-arg) :: ring custom) :: extension>
(Credits to @AGScratcherBest-2 )
cosmosaura
Scratch Team
1000+ posts

Custom loops on forum posts

Since this is resolved, I'll close it to help highlight the answer and prevent future responses. If you need it re-opened, though, you can report this and ask.



___________________
Scratch Team Member
Love hiking, cycling and travelling.

Powered by DjangoBB