The function reports the Euclidean distance, in pixels, between it and the mouse-pointer or a specified sprite’s costume center.
distance()
Function Definition: distance(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.