ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Tiled

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Tiled
File(s): art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Applicable to: Animations


Define whether this Animation is a light pillar that extends infinitely upward.

In Tiberian Sun, the Ion Cannon beam animation [IONBEAM] that uses the Tiled=yes.

Notes

The interval between each two segments of the image depends on the height of the rectangle enclosed by the effective pixels of the first frame in the Shape resource file.

  • Modders can set Start to a value not less than 1 to let the first frame be dedicated to controlling the interval.

This aligns the bottom midpoint of the entire canvas of the Shape resource file to the center of the Animation object.

  • Modders can use YDrawOffset to shift the image downward[1], so that the irregular bottom image does not draw incorrectly in the area above the animation entity's position, or to center the canvas of the Shape resource file on the animation entity's center.

Bugs/Side-Effects/Unexpected Limitations

An Animation with this flag set to yes will hardcode use anim.pal, ignoring Ares' CustomPalette setting.

  • This bug has been fixed in Phobos Build#33.

Similar to above, this also ignores AltPalette.

  • Modders can directly use CustomPalette=unit~~~.pal as a replacement, and this does not introduce the hardcoding related to AltPalette.

References

Starting from Phobos Build#49, an animation with Tiled=yes can customize the drawing interval and choose whether to align using the bottom midpoint of the canvas or the canvas center. Refer to Phobos documentation.

Footnotes

  1. Note that the downward-shifted part may be obstructed by tiles, in which case you need to adjust the ZAdjust value to handle it.

See Also