![]() |
Extra walking frame (when walking in game, not sprite sheet) - 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: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Extra walking frame (when walking in game, not sprite sheet) (/showthread.php?tid=95) |
Extra walking frame (when walking in game, not sprite sheet) - Matt - 05-06-2006 I want it to where, when walking, it alternates between the walking frame, and the attacking frame. I want it to where the standing frame, is ONLY used for standing, not at any other time. Does anyone know how to do this? Mis was tryign to help me, but I think he got frustrated. I can't figure this out. - grimsk8ter11 - 05-06-2006 thee is a tut on the old forums somewhere, btu this should ahve a been a tutorial request. - Matt - 05-06-2006 I'm sure it would have been, if only I was wanting a tut. =P And I looked on the old forums, I couldn't find it. - grimsk8ter11 - 05-06-2006 I could ahve sworn chase wrote sometihng sometime abou tit. - Matt - 05-06-2006 If you find it, link me. - William - 05-06-2006 Well Basicly you can just change a few numbers. Find the bltplayer sub. And change the anim=. In MSE anim can be = 0,1,2 I believe. 0 - Standing 1- Walking 2 - Attacking So just change them as you want them to be. - Matt - 05-06-2006 It's no where near that simple william. - Misunderstood - 05-06-2006 oh it is xD. - William - 05-06-2006 Advocate Wrote:It's no where near that simple william.Hehe, yes it is, you simply just want to change those. Im pretty skilled with the frames cause Ive spent some time on it before, this is my code: Code: ' Check for animation - Misunderstood - 05-06-2006 you do know that PIC_Y / 1 = PIC_Y right?.... and...you have the order wrong, it should be the pic_y/8 first, then the / 2 then the / 1. if its not less than 32, then its definately not gonna be less than 16....or 4.... - William - 05-06-2006 Quote:you do know that PIC_Y / 1 = PIC_Y right?....Yes, but its easier to see it that way, because then it follows all the others. Quote:and...you have the order wrong, it should be the pic_y/8 first, then the / 2 then the / 1.But still, there wont be a difference if I move them around. - Misunderstood - 06-06-2006 oh I didnt notice you had them as separate ifs. If you flip them around and make it one if statement(with elses) then it would be better ![]() - William - 06-06-2006 But still would it run faster? Code: If (Player(Index).YOffset < PIC_Y / 1) Then - Matt - 06-06-2006 Lol, see, what I said is correct, it's not as easy as just changing those numbers, you had to code in more lines of code, not just change the numbers. =P - William - 06-06-2006 Advocate Wrote:Lol, see, what I said is correct, it's not as easy as just changing those numbers, you had to code in more lines of code, not just change the numbers. Advocate, listen to me, in your case you just need to change the numbers. In my case, I modified the walking part, my walking style is way different then yours. - Matt - 06-06-2006 I had what I wanted in an old source of mine, it's NOT just a modification of the numbers. Unfortunatly, I do not have that source anymore. - Misunderstood - 06-06-2006 William Wrote:But still would it run faster? Not very noticably, but probably. It definately wouldn't be slower ![]() and like I said, switch them, so the smallest is at the top, and so on(pic_y/8) - William - 06-06-2006 Thank you, sorry for going off-topic here. |