![]() |
Blitting NPC Names with Misunderstood's Scrolling Maps - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Blitting NPC Names with Misunderstood's Scrolling Maps (/showthread.php?tid=598) |
Blitting NPC Names with Misunderstood's Scrolling Maps - Matt - 08-01-2007 I was curious if anyone has done this, and if so, how? I've been toying with it for the past hour or so, and I can't get it right for the life of me. - Tony - 08-01-2007 I don't know but find ' Draw map name and probally after that just add your drawtext. Maybe, Im not sure.. I only took a 5 second glimpse at his tut. Unless you can point me out to the tut - Matt - 08-01-2007 I don't think it's here. It's not as simple as that though, I'll tell you that much. - Tony - 08-01-2007 Try adding this to your x and y blitting locs (PIC_X * (MAX_MAPX + 1)) - Obsidian - 08-01-2007 just pass the scrolling variables through to the blt sub, then change it based on that. Very similar to the way that you blt npcs/items/players based on their "offset" - Matt - 08-01-2007 That's what I though, so I tried to mod the playername sub, and I couldn't get it. Oh well, I'll just try it again later. I got an error with the line that set the npc's name, it works using a with statement, but not if I just use it flat out.' It's like, Npc(MapNpc(Index).Num).Name but that line gives an error, but if I use: With Npc(MapNpc(Index).Num) And then use Trim(.Name) in the code, it works. I don't know why though. |