[SOLVED] Rendering issue with [item] tag.
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
[SOLVED] Rendering issue with [item] tag.
I use the the [item] tag to render gravestones on the map. However, any units that move to the respective hex are rendered "behind" the texture of the gravestone. How can I avoid this?
Last edited by Anagkai on September 18th, 2018, 3:41 pm, edited 1 time in total.
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
- beetlenaut
- Developer
- Posts: 2825
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Rendering issue with [item] tag.
By default, units are drawn in front of images placed with [item]. You can only make units appear behind the image by using halo=yes. Did you do that?
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: Rendering issue with [item] tag.
Code: Select all
[item]
x,y=56,25
halo=tombstone.png
[/item]
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
Re: Rendering issue with [item] tag.
It does. If it's a 72x72 image and you want it to get drawn behind units, use image= instead of halo=.