Discuss Scratch

Reach-up
New to Scratch
3 posts

Sensing bug?

Forgive me, please, if I'm choosing the wrong place to post this question. I'm a new student in the EdX Harvard CS50 class, building project 0, and I can't seem to get any proximity statements, i.e., sensing statements to work. The one sprite doesn't seem to know it's touching the other, or within a certain proximity of the other, even when they are overlapping. What am I missing?
PhirripSyrrip
Scratcher
500+ posts

Sensing bug?

Do you think that you can share a test project so that we can have a look at it?

; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!
drmcw
Scratcher
1000+ posts

Sensing bug?

Reach-up wrote:

Forgive me, please, if I'm choosing the wrong place to post this question. I'm a new student in the EdX Harvard CS50 class, building project 0, and I can't seem to get any proximity statements, i.e., sensing statements to work. The one sprite doesn't seem to know it's touching the other, or within a certain proximity of the other, even when they are overlapping. What am I missing?
Have you put the if touching block in a loop like a forever block?
forever
if <touching [sprite v]?> then
say [Hello]
end
end


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Reach-up
New to Scratch
3 posts

Sensing bug?

Thank you, both. I've just shared a test script - here's the url: http://scratch.mit.edu/projects/16689602/ .

Could you please take a look? Many thanks!
Reach-up
New to Scratch
3 posts

Sensing bug?

Never mind, folks! I figured it out. Thanks for your offers of help, though.

Powered by DjangoBB