The function checks if its sprite is touching the mouse-pointer, edge, or another sprite. If the sprite is touching the selected object, the block returns true; if it is not, it returns false.
istouching()
Function Definition: istouching(object_name = "_edge_")
- Python Library: Sensing
- Library Import: sprite = Sprite("Sprite-Name")
- Mode: Stage Mode
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
object_name | string | The name of the object or sprite. | "_edge_", "_mouse_" or sprite name | "_edge_" |
Description
Example
There are no examples documented for this article.