Discuss Scratch

abe736
Scratcher
100+ posts

How do I make area music?

Im having trouble making a script where If your In a area It plays music however the problem of my script Is that the music still plays even though Its In a different area

☻/ <(Hi I'm Bob!)
/█
/ \

This Is Bob
He Isn't a troll who likes to hate on scratchers
He also doesn't like advertising or F4F (Even though I'm ok with F4F lol)
And he Is very original and doesn't copy other peoples stuff!

Be like Bob!
I_LOVE_TO_MAKE_STUFF
Scratcher
1000+ posts

How do I make area music?

if <in a certian area> then 
set volume to (100) %


else
set volume to (0) %
end
or vice-versa


press ctrl+shift+down to see my full siggy!
1000th post
Scratch Team, please add targeted links for the forums!



FIRST EVER SCRATCH PROJECT!!!!!!! IT'S HISTORY!
I have a github account! I can make Websites!
People in the suggestions forums:
YOU MUST READ THIS!!!!

Check out The Forum Helpers!
#StandwithUkraine I am Ukrainian, and lots of my family lives there, please pray for Ukraine

Helpful emoji: ███
abe736
Scratcher
100+ posts

How do I make area music?

I_LOVE_TO_MAKE_STUFF wrote:

if <in a certian area> then 
set volume to (100) %


else
set volume to (0) %
end
or vice-versa


Thank you!

☻/ <(Hi I'm Bob!)
/█
/ \

This Is Bob
He Isn't a troll who likes to hate on scratchers
He also doesn't like advertising or F4F (Even though I'm ok with F4F lol)
And he Is very original and doesn't copy other peoples stuff!

Be like Bob!
lbeacroft
Scratcher
3 posts

How do I make area music?

Hi

That was an interesting question.
I thought it might be easier to simply have a back ground with your areas defined with colours. When the sprite is over a particular colour and is set to detect that colour, then that would raise a message or do something.

I made a quick example
https://scratch.mit.edu/projects/618708818

Powered by DjangoBB