Difference between revisions of "Source:getDistance"

m
(Bug notice.)
Line 1: Line 1:
 
{{newin|[[0.8.0]]|080|type=function}}
 
{{newin|[[0.8.0]]|080|type=function}}
 
Returns the reference and maximum distance of the source.
 
Returns the reference and maximum distance of the source.
 
+
{{notice|There's a bug in [[0.8.0]] preventing this function from working}}
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Revision as of 10:16, 20 October 2012

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Returns the reference and maximum distance of the source.

O.png There's a bug in 0.8.0 preventing this function from working  


Function

Synopsis

ref, max = Source:getDistance( )

Arguments

None.

Returns

number ref
The reference distance.
number max
The maximum distance.

See Also


Other Languages