![]() |
Showimg is a pain in the...
I am trying to use an NPC with a list of showimg to display all the images for each level, rather that just setting the NPC image and making alot of useless empty NPCs, and I can't get it to work if I set the x,y. I did, however, manage to get it to work if I set the NPC at the first image location and do showimg at x,y and then base all the other images off of the coordinates of the first image, like so.
NPC Code: But now my problem is, if I walk out of range of the original NPC, all the rest disappear, even some that I would still need to be able to see, is there anyway to make them stay visible regardless of where I am in relation to the NPC containing the scripts? Any suggestions are welcome, thanks. :D |
Perhaps your drawing layer was off, so the coordinates were not showing properly? Also, you can't see NPCs in levels you aren't in, unless you are using a gmap.
Could you post your original attempt to display it with set coordinates? |
Quote:
My original attempt was something like this; NPC Code: |
Quote:
|
Quote:
Oh, you mean in the top of the map. :O Why would it be shown there, and not my current level? :confused: |
Quote:
If you were drawing something at any coordinates between 0 and 60, it would be shown at the top-left level of the gmap. |
Quote:
Thank you sir. :D After some adjustments I found it sitting in a nearby tree, but it's still giving me the problem of if I walk away from the NPC, all the images it's meant to disappear. Do you know of a remedy for this? |
Quote:
|
Quote:
But what of the problem of not being able to see them if you leave the range of the NPC, perhaps some way to attach the NPC to the player so it never goes out of range? Or to only display images with a certain x,y radius of a player? I can't think of a way to do that. :| |
Quote:
NPC Code:message x: #v(x), y: #v(y); Quote:
|
Quote:
It's a downright annoying. :\ |
This is probably a "problem" with the way the NPC server handles showimgs on the GMAP.
Once the information about the actual NPC which is drawing the showimg is no longer being sent to the client, the client stops displaying that NPC's showimgs as well. This is my guess. |
Quote:
|
I've seen this happen before. Have something showimg something, and walk where the actual npc would be off the screen, the showimg will hide if it isn't on layer 4.
|
Not sure if this is related, but online, in a GMapped level, NPC scripts are "hidden" for me. I know they are there, because if they were imagged before, they will still block (creating invisible force fields!). If the levels are not GMapped, the NPC scripts are there and normal and good, but once the levels are GMapped, the images "hide". Nobody seems to understand GMaps. I don't seem to understand anything beyond the third grade level.
Help :( |
Quote:
I just wanted to make an update, I found a solution, put all your image showing NPCs on one level of the gmap that isn't visited very often, say out in the water, or on top of a bunch of trees, and do it this way. NPC Code:setimg ae_treetop.png; The result is that the NPCs are all plugged away on one universal NPC level instead of spread all over the map in a chaotic messy order, but when you are in the game, they are placed where they need to be, and since you're actually setting the x,y of the NPC where you want the image to be, it fixes the problem with not seeing the images. :D Problem solving, orderly, effecient, I hooked a winner. :D |
why not just put them where they actually go? o.o
|
Quote:
So, I store them in a univeral location, neatly stacked and oriented on a level specifically for the map NPCs. :) If I need to edit tiles, I can do so without clutter, if I need to edit NPCs, I can access them all very easily, besides, you can only put NPCs on absolute x,y and most of the time I need them at like x.5,y.3 or something, so putting them where they actually go doesn't help anyways. |
Quote:
|
I was just wondering, since it seems like it would get messy if you have a large gmap. You have to open the huge level file with all the NPCs in it, and figure out which one belongs to the level you are changing. I guess comments could fix that....
I'm sure you do this but I had to say it just in case, you should put that stuff in a if (created) block. You would be surprised how many people just make a big list of things and stick them in the NPC with no event. I've seen entire levels of it. |
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
|
How would one show images above the gamescreen, like, an image that stays on the screen in the same spot, like the GUI? :x
|
changeimgvis
|
Quote:
Ok thanks again Kai. :D |
| All times are GMT +2. The time now is 05:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.