Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how make a script run and allow a script to run, without it repeating the broadcast .
- Arctevious
- Scratcher
100+ posts
how make a script run and allow a script to run, without it repeating the broadcast .
Please any one help!!! im either haveing massive brain fog or this seams just impossible but im trying to keep a script from being called in a loop. the problem is the script can't run because the script is being infinitly called upon, you may say, well then kill the other script doing the loop of broadcast… but i want it to broadcast some how.
this is the problem…
this is the script that keeps being repeated.
this is the problem…
when I receive [start test 3 v]
go to x: (0) y: (100)
repeat (50)
change [ghost v] effect by (-2)
end
broadcast [transfer on test 3 v]
when I receive [transfer on test 3 v]
if <<not <[mouse x] = (mouse x)>> or <not <[mouse y] = (mouse y)>>> then
broadcast [mouse detection v]
stop [this script v]
end
broadcast [mouse isint moving v]
broadcast [transfer on test 3 v]
when I receive [mouse detection v]
if <touching [mouse pointer v] ?> then
glide (0.06) secs to [mouse pointer v]
end
broadcast [transfer on test 3 v]
when I receive [mouse isnt moving v]
wait (10) secs
glide (3) secs to [mouse pointer v]
this is the script that keeps being repeated.
when I receive [mouse is'nt moving v]
forever
if <<touching [mouse pointer v] ?> and <mouse down?>> then
repeat (50)
change [ghost v] effect by (2)
end
else
stop [this script v]
end
end
follow me and join my studio! my goal is to get 100 followers so each follow really helps https://scratch.mit.edu/studios/30582573
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
check out my new youtube channel! https://www.youtube.com/@Arctevious6923
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
when green flag clicked
repeat until < you figure out why your project isn't working>
bang your head on your desk for hours, fiddle your thumbs and play with a paper clip to pass the time,
have a staring contest with the broken code, envy every coder who's better than you, repeat (for 2 weeks) procrastinate
end
- supergamer10000
- Scratcher
1000+ posts
how make a script run and allow a script to run, without it repeating the broadcast .
The last one section has a forever loop, which means it will keep repeating.
Ask yourself, if you were hacked and lost hours, upon hours of work, would you regret not having a strong password that only takes 5 minutes to make?
Is it time to update your password? Here are some tips to make a strong password:
Length: The longer the password, the stronger it is. A password that is at least 12 characters long.
Complexity: Combination of upper and lowercase letters, numbers, and symbols to make it harder to crack.
Uniqueness: Don't use easily guessable information like your name, address, or date of birth. Also, avoid using the same password for multiple accounts.
Passphrases: A phrase made up of random words, numbers, and symbols, as these can be easier to remember but still secure.
Randomness: Use a random password generator to create a unique and unpredictable password.
Regular updates: Regularly change your passwords to stay ahead of potential security threats.
Remember, the goal is to create a password that is strong, unique, and difficult for others to guess.
I would estimate more than 40% of scratchers have passwords that are hard to guess by a human, but easy to guess by a computer. You never know if today would be the day you lose everything.
Even if just one person was saved from losing hours and hours of work, my mission is accomplished.
- Arctevious
- Scratcher
100+ posts
how make a script run and allow a script to run, without it repeating the broadcast .
i know. it has to to work… but i need something so it calls upon it all the time but lets it run before it the code executes which brodcast and wait dosent work because i need the code in the forever loop to run.
follow me and join my studio! my goal is to get 100 followers so each follow really helps https://scratch.mit.edu/studios/30582573
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
check out my new youtube channel! https://www.youtube.com/@Arctevious6923
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
when green flag clicked
repeat until < you figure out why your project isn't working>
bang your head on your desk for hours, fiddle your thumbs and play with a paper clip to pass the time,
have a staring contest with the broken code, envy every coder who's better than you, repeat (for 2 weeks) procrastinate
end
- Arctevious
- Scratcher
100+ posts
how make a script run and allow a script to run, without it repeating the broadcast .
never mind I figured it out. the key was to make a limited loop. like using repeat.
follow me and join my studio! my goal is to get 100 followers so each follow really helps https://scratch.mit.edu/studios/30582573
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
check out my new youtube channel! https://www.youtube.com/@Arctevious6923
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
when green flag clicked
repeat until < you figure out why your project isn't working>
bang your head on your desk for hours, fiddle your thumbs and play with a paper clip to pass the time,
have a staring contest with the broken code, envy every coder who's better than you, repeat (for 2 weeks) procrastinate
end
- Discussion Forums
- » Help with Scripts
- » how make a script run and allow a script to run, without it repeating the broadcast .