Discuss Scratch

GraspingVirus07
Scratcher
51 posts

Why do people say "Double click the flag"?

This is a simple question… I think. But can someone? Help me, I really don't know why people say that.

Hi! My name is GraspingVirus07, you can just call me GV.
LionHeart70
Scratcher
1000+ posts

Why do people say "Double click the flag"?

It's because some projects which use more than one “When green flag clicked” block might be a little laggy. Clicking the flag more than once might help with less lag on the project.

lh70 / nora/tobi / she-they pronouns / pansexual-demisexual / 14 / sagittarius / furry / artist / intp / stop-motion films / lbp / fall out boy / panic! at the disco / twenty one pilots / stranger things / a series of unfortunate events
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
GraspingVirus07
Scratcher
51 posts

Why do people say "Double click the flag"?

LionHeart70 wrote:

It's because some projects which use more than one “When green flag clicked” block might be a little laggy. Clicking the flag more than once might help with less lag on the project.
Thanks A lot!

Hi! My name is GraspingVirus07, you can just call me GV.
footsocktoe
Scratcher
1000+ posts

Why do people say "Double click the flag"?

GraspingVirus07 wrote:

This is a simple question… I think. But can someone? Help me, I really don't know why people say that.

If they say it they have a sloppily coded project. When coded neatly and efficiently, a project only needs the green flag clicked once.


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

awesome-llama
Scratcher
1000+ posts

Why do people say "Double click the flag"?

When a project green flag is clicked, the green flag clicked blocks activate, but never at the same time. If the project has been coded poorly, one green flag clicked block activates before the other (which may have the resetting scripts under it). Parts of the project start up before the project has been fully reset.





↑↑ Click any of the images for an awesome project! ↑↑
◃◁ Click this for my YT channel! ▷▹




My 500th post: https://scratch.mit.edu/discuss/topic/189237/?page=1#post-1861516
My 1000th post: https://scratch.mit.edu/discuss/topic/216809/?page=1#post-2193087
My 1500th post: https://scratch.mit.edu/discuss/topic/234381/?page=1#post-2388018
YmFja3VwLXNpZ2d5LWlk Google this to see my posts.
scratchtwins-691
Scratcher
100+ posts

Why do people say "Double click the flag"?

People say double click the flag because sometimes their projects can be a little laggy and clicking the flag twice helps the project catch up I think…

"Side by side or miles apart, sisters are always connected by the heart."
LionHeart70
Scratcher
1000+ posts

Why do people say "Double click the flag"?

scratchtwins-691 wrote:

People say double click the flag because sometimes their projects can be a little laggy and clicking the flag twice helps the project catch up I think…
Yeah, pretty much. Sometimes multiple clicks of the flag help the project's timing work better.

lh70 / nora/tobi / she-they pronouns / pansexual-demisexual / 14 / sagittarius / furry / artist / intp / stop-motion films / lbp / fall out boy / panic! at the disco / twenty one pilots / stranger things / a series of unfortunate events
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
mr-scratch-cat
Scratcher
500+ posts

Why do people say "Double click the flag"?

A lot of animations have that message in the instructions, and I think it's because of timing issues. But lag seems pretty likely too.

Galleigo
Scratcher
500+ posts

Why do people say "Double click the flag"?

Basically, Scratch takes a while to load a sound (around 0.5 second delay) after it is played. You'll have to click the flag twice to remove the delay.

((╯°□°)–︻╦╤─ – – – :: sensing) :: pen cap
Blocky, a young guard block, guards my signature from kumquats. Still trying to teach him how to shoot the kumquat instead of my signature. By the way, all these coloured URLs still work. Cool, huh? (Sorry for the insane bolding, italicising and underlining. :P)
CYBERSPHERE. They keep coming. It never ends. Can't stop. Won't stop.
My shop is here. Go check it out!
BEAT. How fast are your reflexes?
Space Debris.Tiny floating colourful particles. Nothing much.
Do YOU want to rule? Let's discuss the Rules for Rulers.
Interested in space? Check out The Solar System - Our Home in Space. I was too lazy to colour that one.
ORBIT. Dodge everything to survive!
footsocktoe
Scratcher
1000+ posts

Why do people say "Double click the flag"?

People say double click because they did not code their project correctly. Either they have multiple green flags setting off things that needed to be in a certain order or variables weren't initialized soon enough. If you only have one green flag and a start message, then you never have to double click a green flag.

And no, there is no “1/2 second delay” before a sound plays. The delay is 1/30th of a second at the most. HOWEVER, if in your sound file the first half second is silence, then it looks like a delay but it isn't. Edit the sound!


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

WolfCat67
Scratcher
1000+ posts

Why do people say "Double click the flag"?

I find that I sometimes have issues with “double-clicking the flag”, but that's only on my note block project where, on the first time the project runs on most computers, the sound starts, delays the first block, and plays 2 - 3 notes at the same time, unfortunately. Double-clicking it seems to fix up the problem for whatever reason. I tried changing it to one green flag block (it used to be two) but nothing changed, so that's sometimes ONE of the reasons why you'd have to do that.

Last edited by WolfCat67 (July 29, 2017 17:12:44)


footsocktoe
Scratcher
1000+ posts

Why do people say "Double click the flag"?

WolfCat67 wrote:

I find that I sometimes have issues with “double-clicking the flag”, but that's only on my note block project where, on the first time the project runs on most computers, the sound starts, delays the first block, and plays 2 - 3 notes at the same time, unfortunately. Double-clicking it seems to fix up the problem for whatever reason. I tried changing it to one green flag block (it used to be two) but nothing changed, so that's sometimes ONE of the reasons why you'd have to do that.

I would have to see the project to know why it doesn't work. Got a link?


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

WolfCat67
Scratcher
1000+ posts

Why do people say "Double click the flag"?

footsocktoe wrote:

WolfCat67 wrote:

I find that I sometimes have issues with “double-clicking the flag”, but that's only on my note block project where, on the first time the project runs on most computers, the sound starts, delays the first block, and plays 2 - 3 notes at the same time, unfortunately. Double-clicking it seems to fix up the problem for whatever reason. I tried changing it to one green flag block (it used to be two) but nothing changed, so that's sometimes ONE of the reasons why you'd have to do that.

I would have to see the project to know why it doesn't work. Got a link?
It sometimes works properly, it sometimes doesn't; but here's the link. It'll take a LONG time to load though because I can't compact things properly and it has over 4000 scripts. There's also only one forever loop running at any given time while a song is playing (because none or more than one causes song lag):
https://scratch.mit.edu/projects/168423692/

Remember, the first thing that happens in the project is the green flag clicked broadcasts one message, and it starts a note block song immediately.

footsocktoe
Scratcher
1000+ posts

Why do people say "Double click the flag"?

WolfCat67 wrote:

footsocktoe wrote:

WolfCat67 wrote:

I find that I sometimes have issues with “double-clicking the flag”, but that's only on my note block project where, on the first time the project runs on most computers, the sound starts, delays the first block, and plays 2 - 3 notes at the same time, unfortunately. Double-clicking it seems to fix up the problem for whatever reason. I tried changing it to one green flag block (it used to be two) but nothing changed, so that's sometimes ONE of the reasons why you'd have to do that.

I would have to see the project to know why it doesn't work. Got a link?
It sometimes works properly, it sometimes doesn't; but here's the link. It'll take a LONG time to load though because I can't compact things properly and it has over 4000 scripts. There's also only one forever loop running at any given time while a song is playing (because none or more than one causes song lag):
https://scratch.mit.edu/projects/168423692/

Remember, the first thing that happens in the project is the green flag clicked broadcasts one message, and it starts a note block song immediately.

That's a wonderful project! Having worked with note blocks myself, I know it's not always easy to get them synced and everything, but your project seems perfect to me. I experienced no delays or glitches.

As far as compacting goes, you can use lists and variables with note blocks, but I've always used them like you do, just plain from the can. It's probably worth experimenting with lists of notes if you are going to make another project like this. But I imagine you are completely burned out on note blocks after all the work this one must have taken.

Did you work from MIDI files of the songs? Are you a musician?


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

ZZ9PluralZAlpha
Scratcher
1000+ posts

Why do people say "Double click the flag"?

With projects with numerous resets and things that happen on startup, multi-clicking the green flag gets it all synced (usually) so the project works. I'm not so sure that the sloppy coding thing footsocktoe mentioned is always the case as you sometimes have to double or multi-click the flag on some of the best Scratchers' projects. So it's mostly for syncing scripts that run on startup.

KingOfAwesome58219
Scratcher
1000+ posts

Why do people say "Double click the flag"?

ZZ9PluralZAlpha wrote:

I'm not so sure that the sloppy coding thing footsocktoe mentioned is always the case as you sometimes have to double or multi-click the flag on some of the best Scratchers' projects.
Many of the ‘best scratchers’ intentionally code their projects sloppily to make them look smarter/more complex and prevent other scratchers from understanding and using it. A pretty shady practice.



footsocktoe
Scratcher
1000+ posts

Why do people say "Double click the flag"?

ZZ9PluralZAlpha wrote:

With projects with numerous resets and things that happen on startup, multi-clicking the green flag gets it all synced (usually) so the project works. I'm not so sure that the sloppy coding thing footsocktoe mentioned is always the case as you sometimes have to double or multi-click the flag on some of the best Scratchers' projects. So it's mostly for syncing scripts that run on startup.

That's the point. Write the code correctly in the first place so that the scripts sync properly. For example, have one green flag script that looks like this…

when green flag clicked
initialize global variables
broadcast [Initialize All Local Variables v] and wait
broadcast [Start v]

Each sprite has instead of a green flag the two hat blocks: “Initialize All Local Variables” and “Start”

Such a program will NEVER require a double click


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

myloganator1
Scratcher
100+ posts

Why do people say "Double click the flag"?

Sometimes they say that because the project may be slightly buggy if the flag is only clicked once, like if it has lots or code or something.

The SuperSonic Scratch Forum Helper!
Oh, and there is no such thing as Evil Kumquats. Sorry Kumquats.
Kumquats: AAAAAH!
Me: What? It's fictional!

Powered by DjangoBB

Standard | Mobile