Belzebu Posted May 16, 2016 Author Share Posted May 16, 2016 Hello , someone could help me ?I need a frame system for when my character run frame change.Eclipse Origins 2.0 Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted May 17, 2016 Share Posted May 17, 2016 I can try to point you in the right direction, someone can correct me if I'm wrong. Look for where the frame changes when the character moves and put an if then statement for when the player is running, then just go another frame or two over in the images. (This will require you to edit your images) Link to comment Share on other sites More sharing options...
sherwin Posted May 17, 2016 Share Posted May 17, 2016 at BltPlayerfind this code```' Check to see if we want to stop making him attack With Player(Index) If .AttackTimer + attackspeed < GetTickCount Then .Attacking = 0 .AttackTimer = 0 End If End With```add this below it```' Running If Player(Index).Moving = MOVING_RUNNING Then Anim = Anim + 4 End If```also find this code on BltPlayer too```With rec .top = spritetop * (DDSD_Character(Sprite).lHeight / 4) .Bottom = .top + (DDSD_Character(Sprite).lHeight / 4) .Left = Anim * (DDSD_Character(Sprite).lWidth / 4) .Right = .Left + (DDSD_Character(Sprite).lWidth / 4) End With```replace it with```With rec .top = spritetop * (DDSD_Character(Sprite).lHeight / 4) .Bottom = .top + (DDSD_Character(Sprite).lHeight / 4) .Left = Anim * (DDSD_Character(Sprite).lWidth / 8) .Right = .Left + (DDSD_Character(Sprite).lWidth / 8) End With```find this at bltplayer again```' Calculate the X x = GetPlayerX(Index) * PIC_X + Player(Index).XOffset - ((DDSD_Character(Sprite).lWidth / 4 - 32) / 2)```replace it with```' Calculate the X x = GetPlayerX(Index) * PIC_X + Player(Index).XOffset - ((DDSD_Character(Sprite).lWidth / 8 - 32) / 2)```The Sprite image formation will be like thisStand | Walk | Stand | Walk | RunStand | Running | RunStand | Running > DownStand | Walk | Stand | Walk | RunStand | Running | RunStand | Running > LeftStand | Walk | Stand | Walk | RunStand | Running | RunStand | Running < RightStand | Walk | Stand | Walk | RunStand | Running | RunStand | Running < UpThis is the basic idea i can think ofDidn't test, but it will work Link to comment Share on other sites More sharing options...
Belzebu Posted May 17, 2016 Author Share Posted May 17, 2016 thank you, helped a lot.only when the character runs the frame is resetting .You can help me with this? Link to comment Share on other sites More sharing options...
sherwin Posted May 18, 2016 Share Posted May 18, 2016 @'Belzebu':> thank you, helped a lot.> only when the character runs the frame is resetting .> You can help me with this?What do you mean? Link to comment Share on other sites More sharing options...
Belzebu Posted May 18, 2016 Author Share Posted May 18, 2016 when I run the character is so.It uses frames to run and 1 stopped and return to using the frame run![](http://i65.tinypic.com/5tuh5e.gif) Link to comment Share on other sites More sharing options...
GalacticGlum Posted May 18, 2016 Share Posted May 18, 2016 So every "cycle" of running it plays a walking frame and then plays the running cycle? If that's the problem then let me take a quick look at the above code and see what is the issue.The issue isn't with the code (afaik), it seems to be an issue with the frames. Because you're playing the running stand every frame as part of the run cycle. Mind showing me your sprite sheet? Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted May 18, 2016 Share Posted May 18, 2016 Looks like the code is going from a to 5 (standing to running) because the original code goes from 1 to 2 (standing to walking) so you'll have to make it go from 4 to 5 (running stance to running) Link to comment Share on other sites More sharing options...
GalacticGlum Posted May 18, 2016 Share Posted May 18, 2016 @'Mohenjo:> Looks like the code is going from a to 5 (standing to running) because the original code goes from 1 to 2 (standing to walking) so you'll have to make it go from 4 to 5 (running stance to running)Exactly! Link to comment Share on other sites More sharing options...
Belzebu Posted May 19, 2016 Author Share Posted May 19, 2016 I am using this sprite sheet so the Nin Online only for testing Link to comment Share on other sites More sharing options...
sherwin Posted May 19, 2016 Share Posted May 19, 2016 use thishttp://prntscr.com/b5tbof Link to comment Share on other sites More sharing options...
Belzebu Posted May 20, 2016 Author Share Posted May 20, 2016 still the same thing.![](http://i63.tinypic.com/6sur7k.gif) Link to comment Share on other sites More sharing options...
sherwin Posted May 21, 2016 Share Posted May 21, 2016 I guess the basic one won't work then Link to comment Share on other sites More sharing options...
Belzebu Posted May 23, 2016 Author Share Posted May 23, 2016 someone would have one engine with the animation system to run or a complete system of animation to run? 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