Soryn Posted December 11, 2012 Author Share Posted December 11, 2012 I'm using 64x32 sized sprites… They look and work great until I stand below another NPC. When I do, it looks like the other NPC is standing/walking on my character's face. Not really sure how to handle this. I'm sorry if this has been brought up before. I did search but I didn't come up with a solution.Anyway, it looks like its fine for NPCs walking, just not players using the same sprite. Any idea why the top half of my player sprite is being treated differently than the top half of a npc?Thanks in advance for the assist. Link to comment Share on other sites More sharing options...
iraasta Posted December 11, 2012 Share Posted December 11, 2012 What version are you using?I was going to make tutorial of that but have no time.Look here at my post, I described a concept in simplest way.[http://www.touchofde…n/page__st__220](http://www.touchofdeathforums.com/community/index.php?/topic/130284-eclipse-reborn/page__st__220)If you still dont understand it, PM me ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
tslusny Posted December 11, 2012 Share Posted December 11, 2012 Hmm i think you are using CS:DE or ER. If ER then i am planning big update for it when i will regain access to my PC, and this issue what you posted will be fixed in it along with some other bug reports. Link to comment Share on other sites More sharing options...
Soryn Posted December 11, 2012 Author Share Posted December 11, 2012 @iraasta thanks for the fix. Worked like a charm.@death Ya I'm using your ER instead of using EO as you guys suggested to me… I honestly can't stand the new layout Eclipse is going with these days. So much wasted space and I really didn't want to reinvent the wheel by redoing it to look more like yours. Big clunky menus that take away from the game screen are such a turn off as both a dev and a player. I'm sure I'll be changing yours too but it won't require as much editing. Link to comment Share on other sites More sharing options...
BeNjO Posted December 11, 2012 Share Posted December 11, 2012 how did you fix it?i either stand on there heads when "behind them" or they stand on my head when im infront of them.. i cant find the middle ground :s Link to comment Share on other sites More sharing options...
Soryn Posted December 12, 2012 Author Share Posted December 12, 2012 Well, I did something I wanted to do anyway. The fix from what I could see requires 1 additional layer - I mixed it up a bit. I changed my sprites to be 2 parts… lower and upper. This allows players to have different heads and bodies which is something I wanted anyway. I use the different heads kind of like how you do different hair.Anyway, the player head layer is put on top of the NPC lower layer and the player body layer stays below the NPC lower layer. This also works with 64x NPCs without having to add an additional layer for their top 1/2\. I haven't tested this with anything over 64x. But I doubt it would work without some more modifications.Here is the basic rendering order (bottom to top)GroundMask LayersPlayer LowerNPCPlayer UpperFringe LayersThere are other things drawn in, but for the sake of simplicity, I just didn't add them in. Sorry I didn't clarify his solution just gave me an idea on how to handle things. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now