Discuss Scratch
- Discussion Forums
- » Suggestions
- » New block: <color [] is touching [Sprite v]>
- DevanWolf
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
Since there is only
<color[#ff0000]is touching[#0000ff]?>and
<touching[ v]?>But how about a color is touching an object/sprite:
<color[#ff0000]is touching[ v]?>For example if a sprite's red color touches the mouse pointer will bounce away from it:
when flag clickedor move until the black color of Sprite1 touches the entire part of Sprite2:
forever
if<color[#ff0000]is touching[mouse-pointer v]?>then
point towards[mouse-pointer v]
turn right(180)degrees
end
if on[edge v], bounce::motion
move(10)steps
when flag clickedor move until the cat's orange color reaches the edge of the stage:
set x to(-120)
repeat until<color[#000000]is touching[Sprite2 v]?>
change x by(5)
end
shake hands::custom
when flag clicked
set x to(-120)
repeat until<color[#FAA41A]is touching[edge v]?>
change x by(2)
end
say[I've reached the edge!]
Last edited by DevanWolf (Sept. 6, 2014 14:31:51)
Online YouTube Poop Generator is Here! | SimTunes! | Bring Back Backdrop Scroll Blocks! | New Scratch Blocks! | Scratch Soundfont! | Important MIDI Converter!
Please check out those cool games that you will like! Click a game! Any game!
when(mouse y)>(150)Please help Scratch Team remove the 150px Signature Height Cap!
repeat until <(programmers::extension)>(150)>
delete this cap::control cap
end
delete this limit::control cap
- jaboyc
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
I agree! I've always wanted this block!
Check out my amazing game, Scratch Party! I worked so hard on making this so please check it out!
if <(You are cool?)=[true]> then
say [Scratch Party is awesome!]
forever
play Scratch Party! ::custom
end
end
- DevanWolf
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
v *BUMP* V
Online YouTube Poop Generator is Here! | SimTunes! | Bring Back Backdrop Scroll Blocks! | New Scratch Blocks! | Scratch Soundfont! | Important MIDI Converter!
Please check out those cool games that you will like! Click a game! Any game!
when(mouse y)>(150)Please help Scratch Team remove the 150px Signature Height Cap!
repeat until <(programmers::extension)>(150)>
delete this cap::control cap
end
delete this limit::control cap
- epicsandwich123
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
support! this will be easier for new scratchers, although i do think it has been mentioned before
ever wanted some awesome sening blocks? http://scratch.mit.edu/discuss/topic/45738/
how about copying and pasting? http://scratch.mit.edu/discuss/topic/41980/
#sorry, but games coming soon. check my old account, awesomegames123!
- StartFromScratch101
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
SUPPORTS!
Renovating…
- DevanWolf
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
Bump.
Online YouTube Poop Generator is Here! | SimTunes! | Bring Back Backdrop Scroll Blocks! | New Scratch Blocks! | Scratch Soundfont! | Important MIDI Converter!
Please check out those cool games that you will like! Click a game! Any game!
when(mouse y)>(150)Please help Scratch Team remove the 150px Signature Height Cap!
repeat until <(programmers::extension)>(150)>
delete this cap::control cap
end
delete this limit::control cap
- grokblah
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
To see if a color on a sprite is touching the mouse pointer I would try using a small sprite that follows the mouse. What do you think of this?
when green flag clicked
hide
forever
go to front
go to [mouse-pointer v]
if <<touching [Sprite1 v] ?> and <touching color [#ff0088]>> then
broadcast [touching Sprite1 v]
end
end
- DevanWolf
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
I don't know? Maybe that workaround doesn't work as much as the block I'm suggesting. To see if a color on a sprite is touching the mouse pointer I would try using a small sprite that follows the mouse. What do you think of this?when green flag clicked
hide
forever
go to front
go to [mouse-pointer v]
if <<touching [Sprite1 v] ?> and <touching color [#ff0088]>> then
broadcast [touching Sprite1 v]
end
end
Online YouTube Poop Generator is Here! | SimTunes! | Bring Back Backdrop Scroll Blocks! | New Scratch Blocks! | Scratch Soundfont! | Important MIDI Converter!
Please check out those cool games that you will like! Click a game! Any game!
when(mouse y)>(150)Please help Scratch Team remove the 150px Signature Height Cap!
repeat until <(programmers::extension)>(150)>
delete this cap::control cap
end
delete this limit::control cap
- snaps1
- Scratcher
66 posts
New block: <color [] is touching [Sprite v]>
This Is Better:
Like:<i am touching [ v]::sensing
Cool! Think About It.if <i am touching [jackolope v]::sensing>
say [I touched a jackolope. v] until done::sound
end
Last edited by snaps1 (April 15, 2015 21:54:36)
Just Rolling Around!
( [roll v] and [laugh v]);
- matey1234
- Scratcher
1000+ posts
New block: <color [] is touching [Sprite v]>
Support.
This Is Better:Like:<i am touching [ v]::sensingCool! Think About It.if <i am touching [jackolope v]::sensing>
say [I touched a jackolope. v] until done::sound
end
if <touching [sprite v] ?> then
say [I am touching sprite] for (2) secs
end
Last edited by matey1234 (April 16, 2015 09:45:45)
| Artist | Gamer | Roleplayer | Weirdo | Lazy |
- snaps1
- Scratcher
66 posts
New block: <color [] is touching [Sprite v]>
That Is True corret. Support.This Is Better:Like:<i am touching [ v]::sensingCool! Think About It.if <i am touching [jackolope v]::sensing>
say [I touched a jackolope. v] until done::sound
endif <i am touching [sprite1 v] ?::sensing> then
say [I am touching sprite1.] for (2) secs
end
Last edited by snaps1 (April 16, 2015 13:10:35)
Just Rolling Around!
( [roll v] and [laugh v]);
- GlaceonGamer
- Scratcher
30 posts
New block: <color [] is touching [Sprite v]>
support
when green flag clicked
set [Hugs v] to [0 ]
forever
change [Hugs v] by (1)
end
- Catgirl555
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
Support
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
- gamebuilder2000
- Scratcher
2 posts
New block: <color [] is touching [Sprite v]>
would
work?
but it Doesn't so SUPPORT
<color [#fdc69d] is touching <touching [ Sprite] ?> ?>
work?
but it Doesn't so SUPPORT
Last edited by gamebuilder2000 (May 25, 2017 22:20:16)
- orochi67
- Scratcher
100+ posts
New block: <color [] is touching [Sprite v]>
this scratcher read my mind… nothing much to read. Support. Yes! Support! I have wanted this block so many times…
。。。こんにちは。あたしはオロチシクツシです。ここが好きです。また、あたしはちょっと日本を話します。お休みなさい。ZZZ…
- ColinMedia6
- Scratcher
43 posts
New block: <color [] is touching [Sprite v]>
if <color [#8e76b7] is touching sprite [Dani v] ?> thenThis and Don't Hide blocks are better.
don't hide
end
- Discussion Forums
- » Suggestions
- » New block: <color [] is touching [Sprite v]>