11-10-2006, 08:26 PM
Dave Wrote:You have two loops For i = 1 To MAX_MAP_NPCS, consolidate them to one, you don't need to do those loops twice.
Well, the first one is for bltTile and the other one is after the bltNpc, that is bltFringeTile.
And two of those are needed so it works like this:
bltTile - Normal, mask around the npc
bltNPC - Blits the NPC
bltFringeTile - Blits the upper layer around the npc.
If I combine them to one the npc will walk on fringe or below normal.
The further I came to complete this system, the more I started to thinking if this will actually improve the speed. Cause it all became so much coding, compared to so little before (the default).
So the code is ready for testing, I might have missed something. But I dont think so. Also, it would be good if anybody could go through it and compare it with the old to see if it is faster now than before. So I can geet a true statement that this tutorial is good or if it sucks.