![]() |
Animation bug? - Printable Version +- Mirage Engine (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: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Animation bug? (/showthread.php?tid=147) |
Animation bug? - ice - 29-06-2006 I just noticed that a blank version of MSE, when standing still and fasing left, doens't blit the the wright sprite (I think). It's supposed to blit the player fasing left with legs closed, but it blits the one with open legs. ![]() ----------------------------------------------(/\, this one) So I looked in the subBltPlayer and after studying it for a while, I think that this chooses the player sprite: Code: With rec So when fasing left and anim = 0 then it should blit player fasing left with closed legs, wright? ( .Left= (2 * 3 + 0) * 32 = 192, that is the place where the sprite with closed legs is). I'm kinda confused right now:S, maybe I've missed something? p.s. I couldn't find a help section or something like that :? , so I just posted it here. - Xentar - 29-06-2006 well, isn't a bug, is like the mirage source is, you need add another chara more (the number four) in stand pose, and say that if the chara isn't walking, he stay in stand pose. well, in my case, i add the four direction on the end of the animations: |up-up-up|dw-dw-dw|lf-lf-lf|ri-ri-ri|up-dw-lf-ri| And in bltplayer sub i add this: Code: If IsTryingToMove = False Then u can do the same with the npc's (changing, of course, only one thing) thats only, nothing really hard ^^ i hope its work to u, good luck - ice - 29-06-2006 Okay, I think I get it, thanks. But still, in the source it says: .Left = (GetPlayerDir(Index) * 3 + Anim) * PIC_X (2*3+0) * 32 = 192, and that's where it's supposed to pick the sprite with legs closed, but somehow goes one sprite to the right, it's just that I'm just kind of starting to understand how it all works, only I don't understand why doesn't pick the closed leg sprite. Anyways, thanks for your help. - Xentar - 29-06-2006 well, whats your telling me there is only the thing that say u where is the sprite in the sprites.bmp *3 (saying that the direction is X * 3 poses) where the real animation it is, is in "' Check for animation" where say: if the direction is up, the anim var is 1 and when the bltplayer is reloaded again, the anim var return to 0... ^^ capitsi? if u want add another frame, u need change that for the sprite animation. - ice - 29-06-2006 Ah... Ok, I get it ![]() Oh, and I found out that if you change Code: Case DIR_UP Code: Case DIR_UP At - Lf - Rf instead of At - Rf (wich looks much better and is more logical). So it might is a buck, or am I wandering off again?^^ |