Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Pen Sensing
- dtsts
-
7 posts
Pen Sensing
I am making a 100% pen game and am almost done. I just need help sensing if the enemy is touching the player. I will give credit to whoever helps me.
- MaxLJParisi
-
13 posts
Pen Sensing
If you want to sense if a color is touching a color (this is probably what you want), try this:
If you want to sense if a sprite is touching a color, try this:
If you want to sense if a sprite is touching an other sprite, try this:
<color [#03c353] is touching [#4f4fbf] ?>
If you want to sense if a sprite is touching a color, try this:
<touching color [#7e4b77] ?>
If you want to sense if a sprite is touching an other sprite, try this:
<touching [sprite1 v] ?>Or:
<touching [sprite2 v] ?>
- dtsts
-
7 posts
Pen Sensing
If you want to sense if a color is touching a color (this is probably what you want), try this:<color [#03c353] is touching [#4f4fbf] ?>
If you want to sense if a sprite is touching a color, try this:<touching color [#7e4b77] ?>
If you want to sense if a sprite is touching an other sprite, try this:<touching [sprite1 v] ?>Or:<touching [sprite2 v] ?>
I did already try that though
- deck26
-
1000+ posts
Pen Sensing
The block
<color [#1215ef] is touching [#651b80] ?>needs the first colour to be part of the costume of the sprite detecting the touch. On that basis it wouldn't be 100% pen.
- Discussion Forums
- » Help with Scripts
-
» Pen Sensing