Jump to content

YDrawOffset: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
m 7 revisions imported
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
==Note==
==Note==
*Images in the [[ Particles]] section will not read this tag. Although the Image in the section [[Animations]] will have this tag.
*Images in the [[ Particles]] section will not read this tag. Although the Image in the section [[Animations]] will have this tag.
*It only affects animation images. shadow of animation will not be affected by the change.


==See also==
==See also==
* [[ZAdjust]]
* [[ZAdjust]]

Latest revision as of 22:14, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: YDrawOffset
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: Any TechnoType art entry


This is a quite useful flag that can be applied to any entry in the Art(md).ini file (except infantry sequences, of course).
Using this flag, you can – like its name suggests – adjust the image's Y-draw offset, which basically means that you can move your image (preferably animations) up or down on the screen.

Note that
positive values move the image down, while
negative values move the image up.

The values are measured in pixels.

You can avoid having to edit your SHP files in order to "move" them up or down simply by using this flag . However, note that this will also affect how the image is layered with others. Moving the image up will cause it to be rendered on a "higher" layer (closer to the screen), and vice versa.

Note

  • Images in the Particles section will not read this tag. Although the Image in the section Animations will have this tag.
  • It only affects animation images. shadow of animation will not be affected by the change.

See also