Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blitting NPC Names with Misunderstood's Scrolling Maps
#1
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.
Reply
#2
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
Reply
#3
I don't think it's here.

It's not as simple as that though, I'll tell you that much.
Reply
#4
Try adding this to your x and y blitting locs
(PIC_X * (MAX_MAPX + 1))
Reply
#5
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"
Reply
#6
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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)