Table of Contents

distance()

Function Definition: distance(object_name = "_edge_")

Parameters

NameTypeDescriptionExpected ValuesDefault Value
object_namestringThe name of the object or sprite."_edge_", "_mouse_" or sprite name"_edge_"

Description

The function reports the Euclidean distance, in pixels, between it and the mouse-pointer or a specified sprite’s costume center.

Example

There are no examples documented for this article.