Difference between revisions of "Source:seek"

Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|offset|The amount of units to seek.}}
+
{{param|number|offset|The position to seek to.}}
{{param|TimeUnit|unit ("seconds")|The unit of the offset value.}}
+
{{param|TimeUnit|unit ("seconds")|The unit of the position value.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 09:09, 25 March 2011

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

Sets the currently playing position of the Source.

Function

Synopsis

Source:seek( offset, unit )

Arguments

number offset
The position to seek to.
TimeUnit unit ("seconds")
The unit of the position value.

Returns

Nothing.

See Also

Other Languages