Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help! Why isn't "touching _" in Sensing working?
- pandacupcake234
-
Scratcher
1 post
Help! Why isn't "touching _" in Sensing working?
Hi, I'm making a project that requires me to use “touching _” in Sensing. But it won't work! The character touches the sprite it needs to use “touching _” on but it won't budge. It has worked all the time in past situations but for some reason, it won't now!
- drmcw
-
Scratcher
1000+ posts
Help! Why isn't "touching _" in Sensing working?
If you share your project or type out the script you are trying then it'd help us help you.
The touching block doesn't make a sprite budge or move, it just returns a true or false value that you can use to move a sprite, such as;
if touching sprite1 then
move 10 steps
The touching block doesn't make a sprite budge or move, it just returns a true or false value that you can use to move a sprite, such as;
if touching sprite1 then
move 10 steps
- Themousinator
-
New Scratcher
2 posts
Help! Why isn't "touching _" in Sensing working?
I'm having similar problems with touching. I've made a code that when a sprite touches a certain other sprite there should be a costume change, when the character is driven to the other sprite nothing happens when they touch.
- Themousinator
-
New Scratcher
2 posts
Help! Why isn't "touching _" in Sensing working?
Sorry two seconds later I'd worked out. I hadn't put it in a loop.hehe.
- syfydude
-
Scratcher
7 posts
Help! Why isn't "touching _" in Sensing working?
It hasn't worked for me either,but I figured it out, can you tell me specifects about the problem,like what blocks are included?
p.s. yes I'm new,I like programming,also need people to ask questions.
p.s. yes I'm new,I like programming,also need people to ask questions.

- SoccerRocker222
-
Scratcher
40 posts
Help! Why isn't "touching _" in Sensing working?
i'm having problems with the sensing color block. i have used it A TON but it always works. except for now. i am clearly clicking on yellow so it will say if touching yellow then change y by -10. but the color that appears is black!! is this a glitch or what???? 

- ThatRandomCow
-
Scratcher
4 posts
Help! Why isn't "touching _" in Sensing working?
Hi, I'm making a project that requires me to use “touching _” in Sensing. But it won't work! The character touches the sprite it needs to use “touching _” on but it won't budge. It has worked all the time in past situations but for some reason, it won't now!Me too! I'm making a maze game and when i touch a wall of a specific color my sprite is supposed to go back to the start.
<touching color [#ff0088] ?>help!!
go to x: () y: (0)
- 74violet
-
New Scratcher
7 posts
Help! Why isn't "touching _" in Sensing working?
Hello it's me 74violet two of my games aren't working but SCRATCH IS NOT
I downloaded it and it said we're having proplems
do you want to press to get away scratch I clicked no please tell me if you know
I downloaded it and it said we're having proplems
do you want to press to get away scratch I clicked no please tell me if you know
when green flag clicked
move () steps
- ChaoticParadise
-
Scratcher
46 posts
Help! Why isn't "touching _" in Sensing working?
guys this is a forum for helping people, if you have nothing productive and helpful to say try to not say it.
- blazer222
-
Scratcher
1 post
Help! Why isn't "touching _" in Sensing working?
when green flag clicked
if <touching [ sprite1] ?> then
change [ heath] by (-1)
end
and it won't work!!!!!!! what is wrong!!!!!!!
Last edited by blazer222 (Oct. 20, 2014 00:56:52)
- AwesomeFaceXD
-
Scratcher
6 posts
Help! Why isn't "touching _" in Sensing working?
when green flag clicked
if <touching [ sprite1] ?> then
change [ heath] by (-1)
end
and it won't work!!!!!!! what is wrong!!!!!!
AwesomeFaceXD Wrote
Try this [blazer222]
when green flag clicked
forever
repeat (1)
if <touching [sprite1 v] ?> then
change [health v] by (-1)
go to x: (the start) y: (of game or level)
end
end
end
The reason being is that when you press the green flag (on your example) it will only detect for one pulse where on my example it will forever repeat. Hope this helps!
Last edited by AwesomeFaceXD (Oct. 20, 2014 09:52:23)
- jams41
-
Scratcher
14 posts
Help! Why isn't "touching _" in Sensing working?
my sprite goes back to the start of the game when it touches purple and yellow, but not red. 

- Bright_Eyes
-
Scratcher
21 posts
Help! Why isn't "touching _" in Sensing working?
i'm having problems with the sensing color block. i have used it A TON but it always works. except for now. i am clearly clicking on yellow so it will say if touching yellow then change y by -10. but the color that appears is black!! is this a glitch or what????
Gah! It happens to me, too! But it happens because
the “if” script needs a forever around it.
Why did I never think of that before? I thought it didn't need a forever, but no!!!!! WOWIE!!!!!! I was just testing something. set [ WOWIE!!!!!] to [kewl]
- Bright_Eyes
-
Scratcher
21 posts
Help! Why isn't "touching _" in Sensing working?
my sprite goes back to the start of the game when it touches purple and yellow, but not red.
Wow. I guess you guys don't really have problems with scripting then after all. It is just a bug.
NOT WHAT I THOUGHT!!!!!!! sometimes i can be wrong.
- E-cool_creator
-
Scratcher
2 posts
Help! Why isn't "touching _" in Sensing working?
Hi, I'm making a project that requires me to use “touching _” in Sensing. But it won't work! The character touches the sprite it needs to use “touching _” on but it won't budge. It has worked all the time in past situations but for some reason, it won't now!I am making a project that also uses the sensing. It reads: if touching sprite__ then do the following. It won't work!
- qinkeer
-
Scratcher
27 posts
Help! Why isn't "touching _" in Sensing working?
If it's touching color, then you need to select a color by getting your mouse-pointer to the color you want. If it's touching ___ then you have to select a sprite, the edge, or the mouse-pointer.
- ScaleneParkour
-
Scratcher
100+ posts
Help! Why isn't "touching _" in Sensing working?
You might be doing this!
Instead try this
when green flag clicked
if <touching [ Something] ?> then
end
Instead try this
when green flag clicked
forever
if <touching [ Something] ?> then
end
end
- 8BitKawaii
-
Scratcher
11 posts
Help! Why isn't "touching _" in Sensing working?
I have the problem with touching colours.
when backdrop switches to [ v]
forever
if <touching color [#ff0088] ?> then
go to [ v]
end
end
- 8BitKawaii
-
Scratcher
11 posts
Help! Why isn't "touching _" in Sensing working?
WHAT IS WRONG WITH MY SCRIPT (I FORGOT TO ADD THIS)
- Daphne_456456-Minec
-
Scratcher
100+ posts
Help! Why isn't "touching _" in Sensing working?
If you need help with this:
then you should see this: https://scratch.mit.edu/projects/69975458/
If you need help with this:
then you choose a sprite, edge, or the mouse-pointer. If you're doing the right thing and it isn't working, I don't know…
<touching color [#ff0088] ?>
then you should see this: https://scratch.mit.edu/projects/69975458/
If you need help with this:
<touching [ v] ?>
then you choose a sprite, edge, or the mouse-pointer. If you're doing the right thing and it isn't working, I don't know…
- Discussion Forums
- » Help with Scripts
-
» Help! Why isn't "touching _" in Sensing working?
