Discuss Scratch

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
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.
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?

pandacupcake234 wrote:

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.
touchingcolor?gotox:y:0
help!!
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
whenclickedmovesteps
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?

whenclickediftouching sprite1?thenchange heathby-1anditwon'twork!!!!!!!whatiswrong!!!!!!!

Last edited by blazer222 (Oct. 20, 2014 00:56:52)

AwesomeFaceXD
Scratcher
6 posts

Help! Why isn't "touching _" in Sensing working?

blazer222 wrote:

whenclickediftouching sprite1?thenchange heathby-1anditwon'twork!!!!!!!whatiswrong!!!!!!AwesomeFaceXDWroteTrythisblazer222whenclickedforeverrepeat1iftouchingsprite1?thenchangehealthby-1gotox:thestarty:ofgameorlevelThereasonbeingisthatwhenyoupressthegreenflagonyourexampleitwillonlydetectforonepulsewhereonmyexampleitwillforeverrepeat.Hopethishelps!

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?

SoccerRocker222 wrote:

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!!!!!tokewl
Bright_Eyes
Scratcher
21 posts

Help! Why isn't "touching _" in Sensing working?

jams41 wrote:

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?

pandacupcake234 wrote:

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!

whenclickediftouching Something?then

Instead try this

whenclickedforeveriftouching Something?then
8BitKawaii
Scratcher
11 posts

Help! Why isn't "touching _" in Sensing working?

I have the problem with touching colours.

whenbackdropswitchestoforeveriftouchingcolor?thengoto
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:

touchingcolor?

then you should see this: https://scratch.mit.edu/projects/69975458/

If you need help with this:

touching?

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…

Powered by DjangoBB