ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Flat: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
==Note== | ==Note== | ||
<i>"and has code for disabling the animation's shadow (in TS animation shadows don't work anyway)"</i><br> | |||
*In fact, the shadow logic on this tag still works. The actual shadow color will not work. But if you try adding other colors to the shadows. Shadow colors will work as normal.<br>[[File:Color of Shadow.png]][[File:Color of Shadow1.gif]]<br> | |||
*The <b>Flat</b> tag has side effects. When used with large animations or animations that are too tall<br>[[File:side effects of tag Flat.png]]<br> | *The <b>Flat</b> tag has side effects. When used with large animations or animations that are too tall<br>[[File:side effects of tag Flat.png]]<br> | ||
*Shadows of images defined in the [[Projectile]] section will be displayed normally.<br>[[File:Flat on Image (Projectile).png]]<br> | *Shadows of images defined in the [[Projectile]] section will be displayed normally.<br>[[File:Flat on Image (Projectile).png]]<br> |
Revision as of 04:16, 12 January 2025
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Flag: | Flat |
File(s): | art(md).ini |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Default: | no |
Applicable to: | BuildingTypes,Animations,Image |
States if this building+animation+Image lays flat on the ground. This flag helps the game's drawing logic in determining layers and where to draw it.
For animations, this flag also moves the animation 3 pixels up on the Y-axis, and has code for disabling the animation's shadow (in TS animation shadows don't work anyway).

H=-9
The Tiled=yes tag destroys changes made to H values.
tag YDrawOffset can compensate for changed H values The value inside the YDrawOffset tag must be negative equal to the negative H value. Example: H=-9 YDrawOffset=-9
Note
"and has code for disabling the animation's shadow (in TS animation shadows don't work anyway)"
- In fact, the shadow logic on this tag still works. The actual shadow color will not work. But if you try adding other colors to the shadows. Shadow colors will work as normal.
- The Flat tag has side effects. When used with large animations or animations that are too tall
- Shadows of images defined in the Projectile section will be displayed normally.
Bugs/Side-Effects/Unexpected Limitations
If Projectile has Image=Voxel x any Then Voxel x have Flat=true in the Art.ini or Artmd.ini section will cause Voxel to not work efficiently
According to the video below
https://www.youtube.com/watch?v=bwB6BhmGX6g