BugSICK Posted January 14, 2013 Author Share Posted January 14, 2013 ive been looking for tutorial and yet i cant find and decided to make a thread on how can i edit in the source the NPC.basically the NPC looks like this.![](http://www.freemmorpgmaker.com/files/imagehost/pics/36203dd6917307e91df71cb8662b7d15.png)i want to make itXXXXXXXXXXXXnot like the picture aboveXXXXXXXXXXXXXXXXis their a link on this? please post if you have this or a tutorial.Sorry for my english hope you understand it. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
MadalinV Posted January 14, 2013 Share Posted January 14, 2013 well, the 3rd sprite of every line is not needed. Link to comment Share on other sites More sharing options...
Wortel Angels Posted January 14, 2013 Share Posted January 14, 2013 I dont know if there is an tutorial but i could make it for you if you want ;-)If Yes PM me Link to comment Share on other sites More sharing options...
Whitepinkbun Posted January 15, 2013 Share Posted January 15, 2013 Just do thisReplace in BLTPLAYER' Reset frameIf Player(Index).Step = 3 Thenanim = 0ElseIf Player(Index).Step = 1 Thenanim = 2End IfWith' Reset frameIf Player(Index).Step = 3 Thenanim = 1ElseIf Player(Index).Step = 1 Thenanim = 1End IfandWith 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 WithwithWith rec.top = spritetop * (DDSD_Character(Sprite).lHeight / 4).Bottom = .top + (DDSD_Character(Sprite).lHeight / 4).Left = anim * (DDSD_Character(Sprite).lWidth / 3).Right = .Left + (DDSD_Character(Sprite).lWidth / 3)End Withand' Calculate the Xx = GetPlayerX(Index) * PIC_X + Player(Index).XOffset - ((DDSD_Character(Sprite).lWidth / 4 - 32) / 2)with' Calculate the Xx = GetPlayerX(Index) * PIC_X + Player(Index).XOffset - ((DDSD_Character(Sprite).lWidth / 3 - 32) / 2)and' Check for attacking animationIf Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount ThenIf Player(Index).Attacking = 1 Thenanim = 3End IfElsewith' Check for attacking animationIf Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount ThenIf Player(Index).Attacking = 1 Thenanim = 2End IfElseand make the sprite goWalk frame 1 / walk standing / walk frame 2I think thats it….if that doesnt work this too.....Also I think.... you might need to replace' If not attacking, walk normallySelect Case GetPlayerDir(Index)Case DIR_UPIf (Player(Index).YOffset > 8) Then anim = Player(Index).StepCase DIR_DOWNIf (Player(Index).YOffset < -8) Then anim = Player(Index).StepCase DIR_LEFTIf (Player(Index).XOffset > 8) Then anim = Player(Index).StepCase DIR_RIGHTIf (Player(Index).XOffset < -8) Then anim = Player(Index).StepEnd Selectwith' If not attacking, walk normallySelect Case GetPlayerDir(Index)Case DIR_UPIf (Player(Index).YOffset > 8) Then anim = Player(Index).Step - 1Case DIR_DOWNIf (Player(Index).YOffset < -8) Then anim = Player(Index).Step - 1Case DIR_LEFTIf (Player(Index).XOffset > 8) Then anim = Player(Index).Step - 1Case DIR_RIGHTIf (Player(Index).XOffset < -8) Then anim = Player(Index).Step - 1End Select 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