I THINK that hidden objects can sometimes return true for "touching"
in the java-compiled browser-based version of a scratch project.
This appears to be different than the behavior of the same project
running in the Scratch app locally.
If this seems absurd or confusing, I'll try to work up a bit of test code
to isolate the problem...
Offline
You are 100% right about this. See this project for proof.
http://scratchr.org/projects/debugjay/371
We'll work on debugging that.
From project notes on debug project:
this project has two invisible cats, one on the left and one on the right. one is hidden via "set ghost to 100" while the other is hidden via "hide" block. the visible cat changes color when he is "touching" the cat on the right and whirls when "touching" the cat on the left. despite their invisibility, the collisions are detected. this is different from the behavior in the scrtach programming environment where the collisions are not detcted.
Offline
This is fixed now. Note that even though you can't touch a sprite that is hidden, its scripts are still running and it can touch any non-hidden sprite. (So you can have a treasure sprite reveal itself when a character touches it.)
Last edited by johnm (2007-03-15 19:58:57)
Offline
andymilburn wrote:
I THINK that hidden objects can sometimes return true for "touching"
in the java-compiled browser-based version of a scratch project.
This appears to be different than the behavior of the same project
running in the Scratch app locally.
If this seems absurd or confusing, I'll try to work up a bit of test code
to isolate the problem...
Try going on the flash player, also...FIRST COMMENT IN 3 YEARS ON THIS BOARD!
Offline
Ashurathehedgehog wrote:
andymilburn wrote:
I THINK that hidden objects can sometimes return true for "touching"
in the java-compiled browser-based version of a scratch project.
This appears to be different than the behavior of the same project
running in the Scratch app locally.
If this seems absurd or confusing, I'll try to work up a bit of test code
to isolate the problem...Try going on the flash player, also...FIRST COMMENT IN 3 YEARS ON THIS BOARD!
That's called a necropost. It makes you look stupid
We don't usually like reviving old(in this case, 3-year-old) topics from the dead.
Offline
I agree with scratch_yoshi. Except for the "makes you look stupid" part.
Offline
scratch_yoshi wrote:
Ashurathehedgehog wrote:
andymilburn wrote:
I THINK that hidden objects can sometimes return true for "touching"
in the java-compiled browser-based version of a scratch project.
This appears to be different than the behavior of the same project
running in the Scratch app locally.
If this seems absurd or confusing, I'll try to work up a bit of test code
to isolate the problem...Try going on the flash player, also...FIRST COMMENT IN 3 YEARS ON THIS BOARD!
That's called a necropost. It makes you look stupid
![]()
We don't usually like reviving old(in this case, 3-year-old) topics from the dead.
Yeah, necroposting isn't exactly something to be proud of.
Offline