2010-08-22 13:13:17 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< !DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
2009-05-09 13:11:51 +00:00
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs >
2010-08-22 13:13:17 +00:00
<func >
<title > SetPosition</title>
<category > Objects</category>
<subcat > Position</subcat>
2011-06-30 10:52:55 +00:00
<version > 5.1 OC</version>
2010-08-22 13:13:17 +00:00
<syntax >
<rtype > void</rtype>
<params >
<param >
<type > int</type>
<name > x</name>
<desc > New X position of the object.</desc>
</param>
<param >
<type > int</type>
<name > y</name>
<desc > New Y position of the object.</desc>
</param>
<param >
<type > bool</type>
<name > check_bounds</name>
2016-01-01 17:53:34 +00:00
<desc > Only applies to objects using the <emlink href= "definition/properties.html" > BorderBound property</emlink> . Ensures that the position is always within the limits specified by the object.</desc>
2010-08-22 13:13:17 +00:00
<optional />
</param>
2015-07-04 15:10:41 +00:00
<param >
<type > int</type>
<name > prec</name>
2015-07-04 15:30:24 +00:00
<desc > Precision. Coordinates are divided by this value to enable movement to fractional positions. Defaults to 1.</desc>
2015-07-04 15:10:41 +00:00
<optional />
</param>
2010-08-22 13:13:17 +00:00
</params>
</syntax>
<desc > Moves the object to the specified position. This will set the exact pixel position and any internal sub-pixel offsets will be reset.</desc>
<related >
<funclink > GetX</funclink>
<funclink > GetY</funclink>
</related>
</func>
<author > Sven2</author> <date > 2002-08</date>
<author > Clonkonaut</author> <date > 2008-04</date>
2009-05-09 13:11:51 +00:00
</funcs>