![]() |
How would I be able to put an NPC on top of another NPC?
For example, say I have a shelf npc, and I want to put a beer npc on top... how would I do that? (I've tried already, either one of the npcs disappear on the bottom and can't be seen) |
create the shelf npc first, then the beer npc. npcs are displayed in the order which they were created
|
Holy hell.
I didn't know that. |
okay, I'll try that. thanks galen.
|
Erm...
In the editor, that's often true....
At runtime though, it goes layer first (drawoverplayer beats regular beats drawunderplayer), then base Y (objects that touch the ground more to the south are drawn over same-layer objects "behind" them to the north.) |
Hmm...
Well I tihnk that if you give the shelf drawunderplayer and the beer just plain nothing that it gets drawn over the shelf ^^, but anywho if you are making use of changeimgvis here's the true explanation of it:
changeimgvis index,0; Means drawunderplayer. changeimgvis index,1; Means Drawasplayer, I.E. if a player is standing in front of it hes drawn over it, but if he stands besides it he's draw under it. changeimgvis index,2; Means drawoverplayer. (Default) changeimgvis index,4; Means draw as stat, this type of showimg also work slightly different and isn't effected by seteffect effects and is drawn over everything always. |
hehehe
Quote:
|
I found that out making my quest, I had a ton of NPCs in a row.
|
Yay! Now the NPCs work, w00h00!
|
| All times are GMT +2. The time now is 02:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.