Discuss Scratch

1819
Scratcher
16 posts

[FIXED] Inconsistent results of "touching other sprite" block

For two perfectly adjacent sprites, the
<touching [ v] ?>
block returns different results depending on their position.

Test project

My browser / operating system: Windows 7, Firefox 68.0, No Flash version detected

Last edited by 1819 (April 15, 2021 03:25:35)

banana439monkey
Scratcher
1000+ posts

[FIXED] Inconsistent results of "touching other sprite" block

CR, it only changes if the Y position changes. My browser / operating system: Windows NT 10.0, Chrome 76.0.3809.100, No Flash version detected

Banana
1819
Scratcher
16 posts

[FIXED] Inconsistent results of "touching other sprite" block

banana439monkey wrote:

CR, it only changes if the Y position changes. My browser / operating system: Windows NT 10.0, Chrome 76.0.3809.100, No Flash version detected

Banana

Try going to Y=71. For me, when X<71 it's false while true for X>=71.
shikma
Scratcher
59 posts

[FIXED] Inconsistent results of "touching other sprite" block

This is exactly what is happening to me too. Did you happen to solve it?
Link to my game where it happens
1819
Scratcher
16 posts

[FIXED] Inconsistent results of "touching other sprite" block

shikma wrote:

This is exactly what is happening to me too. Did you happen to solve it?
Link to my game where it happens
Nope, didn't feel like dealing with it anymore. And it's unlikely to gain enough traction to get fixed.
shikma
Scratcher
59 posts

[FIXED] Inconsistent results of "touching other sprite" block

I implemented a workaround to this issue.
When I check if my sprite is stuck in a wall (to move it back) I first try to raise the sprite 1 pixel up to see if I'm clear.
You can see it implemented in my game Sparky.

Powered by DjangoBB