Posts: 842
Threads: 44
Joined: Jan 2016
Reputation:
8
Well, that's odd. I typed a response out but apparently never submitted it... I cannot brain.
The new sprites for Air Force and its attachments, the attachments are layered behind the Air Force, so they're covered up and don't display right - the original Air Force had its attachments over the top of the Air Force. The new sprites use the same mold and enemy slots, and I've compared them to vanilla to make sure nothing is different other than position.
Posts: 49
Threads: 3
Joined: Mar 2016
Reputation:
0
Quick summary of the mold problem:
I created new graphics for Air Force, Missile Bay, and Laser Gun. When Drakey puts them in the game, Missile Bay and Laser Gun appear behind the Air Force instead of in front of it.
The biggest change I can see is that the original uses Mould 7 with the enemies in slots 0, 2,3, and 4, while the modified one has the enemies in slots 0, 1, 2, and 3, and might use a different mould.
I don't know much about Moulds - is there documentation on them somewhere, especially how they are stored? Is it possible something in the mould controls which slots appear in front of each other?
Posts: 127
Threads: 8
Joined: Jan 2012
Reputation:
13
04-13-2016, 11:58 PM
(This post was last modified: 04-14-2016, 01:59 AM by m06.)
Maybe they layer based on Y position (or X/Y position) so anything higher on the screen will be drawn first and have the lowest layering priority.
I've not used monster formations much so I'm guessing here based on that everything else seems in order.
EDIT: I did some quick tests. Sprites closer to the bottom will overlap (has priority over) sprites closer to the top. If sprites have the same Y position their X priority will be first monster in data overlaps latter monsters in data.