Skript Referenz |
transformobj (Object ; Type; Values ; time in milliseconds ; smooth ) //Expert |
Used for : Objects.
Parameter s :
Description :
Transforms an object. Supported type of transformations are "rotate", "scale" and "skew. Some examples :
transformobj (object1 ; rotate ; 180 ; 2000 ; smooth ; clockwise) |
Rotates an object to the 180 degree position within 2 seconds. "clockwise" or "counterclockwise" are optional. Without those the shortest rotation will be used. "Smooth" smoothes the rotation and can also be replaced with a value from 1 to 199 ("Smooth" is a value of 20).
transformobj (object1 ; scale ; 200 ; 50 ; 3000; smooth) |
Scales an object to 200% horizontally and to 50% vertically within 3 seconds.
transformobj (object1 ; skew ; 0 ; 100 ; 1000 ; 80) |
Skews an object. Possible values for X and Y are 0 - 200. 100 is the normal state of the object. 0 skews completly to the left and 200 completly to the right. The change will take 1 second and will be a little bit smoothed.
Important (1) : The mouseposition for the object does NOT change by using transformobj. Making use of dummys is recommended.
Important (2) : Rotate and Skew harmonieren together will result in strange things.
[ Variabels] can be used as parameters.