NML spritelayout checks
Moderator: Graphics Moderators
NML spritelayout checks
NML has a check that in a spritelayout, xoffset and yoffset cannot be smaller than 0. But there sometimes are specific use cases of them, e.g. overlapping station tiles or animations. The check gets disabled when I add a variable and write something like LOAD_TEMP(0) * 0 - 35, and the expression that directly equals to -35. Additionally, when coding a station, NML automatically thinks that the ground sprite needs to be shifted - that means if the tracktype is, say, mono, what OpenTTD will do is that the game will add a number on the groundsprite. I used a ternary operator to bypass that shift when coding non-track platforms. I know that for the latter issue there is a fix from glx, but for the first one I don't know if there are any solutions yet.
Find me on GitHub or on Discord (wensimehrp, or WenSim)
Also find me via QQ: 1049170778, or email: wensimehrp@gmail.com
Green stuff here, may be helpful for content creators.
Also find me via QQ: 1049170778, or email: wensimehrp@gmail.com
Green stuff here, may be helpful for content creators.
Who is online
Users browsing this forum: No registered users and 12 guests