Scratch for Java

Sprite::isTouchingSprite()

Checks if this sprite is touching another sprite.

Syntax

Java

.isTouchingSprite(sprite)
.isTouchingSprite(c)

Parameters

Name Data Type Description
sprite Sprite The sprite to check for collision with.
c Class<Sprite> the class type of the sprite to check for collision

Return

boolean

isTouchingSprite()