Discuss Scratch

dtsts
Scratcher
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
Scratcher
13 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] ?>
dtsts
Scratcher
7 posts

Pen Sensing

MaxLJParisi wrote:

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

Powered by DjangoBB