CRxTRDude
Member
Picked up from the "bug with shadow trails" post ...
Story so far:
Checked the problem now and I think I knew why it does.
For others out there, is there a way to improve the shadow trailer code or better yet, isolate setdrawmethods for it?
Apparently, it uses NULL() as the entity for setdrawmethod and it's screwing up other scripts that uses NULL() as well. That's why it screwed up as the shadow trailer setdrawmethod carries over the color map for the shadow trail onto entities that should not use the colormap in the first place (like sprites for dialogue).
BTW, how do you guys read/interpret this:
A lot of extra parameters than I used to.
Also, is this description for setdrawmethod still correct for global drawmethod?:
setdrawmethod(entity, int flag, int scalex, int scaley, int flipx, int flipy, int shiftx, int alpha, int colourmap, int fillcolour, int rotate, int rotateflip, int transparencybg)
Story so far:
Checked the problem now and I think I knew why it does.
For others out there, is there a way to improve the shadow trailer code or better yet, isolate setdrawmethods for it?
Apparently, it uses NULL() as the entity for setdrawmethod and it's screwing up other scripts that uses NULL() as well. That's why it screwed up as the shadow trailer setdrawmethod carries over the color map for the shadow trail onto entities that should not use the colormap in the first place (like sprites for dialogue).
BTW, how do you guys read/interpret this:
Code:
setdrawmethod(NULL(),1,sx,sy,facing,0,0,6,0,0,0,0,0,map);
A lot of extra parameters than I used to.
Also, is this description for setdrawmethod still correct for global drawmethod?:
setdrawmethod(entity, int flag, int scalex, int scaley, int flipx, int flipy, int shiftx, int alpha, int colourmap, int fillcolour, int rotate, int rotateflip, int transparencybg)