User Tools

Site Tools


crpl:docs:setimageposition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:setimageposition [2013/01/14 14:04] – created chanicrpl:docs:setimageposition [2018/12/17 12:44] – Hyperlink to SetImagePositionZ Grabz
Line 1: Line 1:
-TODO+~~DISCUSSION~~ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#image_commands|Image Commands]] 
 +=====  SetImagePosition  ===== 
 + 
 +^Arguments^Result^Notation^ 
 +|A unit UID, image slot, X, Y, Z coordinates| |''i1 s1 f1 f2 f3 -- ''
 + 
 + 
 +=== Description === 
 +Sets the coordinates (in floating point pixel space) of the image.  
 +0,0,0 is the exact center of the unit. Negative Z values are closer to the camera. 
 + 
 +For more information on how the Z value works, as well as a list of some of the layers the game uses to render items, see [[crpl:docs:setimagepositionz|SetImagePositionZ]]. 
 +=== Examples === 
 +<code># Set the location of "FlyingThing" to 10,10  
 +# (to the right and above the center of the unit).  
 +# Move the image slightly closer to the camera  
 +# (-0.01 on the z axis) so it appears in front of the  
 +# main image.  
 +Self "FlyingThing" 10 10 -0.01 SetImagePosition 
 +</code>  
crpl/docs/setimageposition.txt · Last modified: 2021/02/05 11:43 by Karsten75