Jumbofile Posted April 4, 2011 Author Share Posted April 4, 2011 Can someone please write a edit so you can add a another line on the paperdoll to make an attack movement when you press ctrl Link to comment Share on other sites More sharing options...
da_gad_pader Posted May 25, 2011 Share Posted May 25, 2011 try my own way , on moddirectDraw7 , on Public Sub bltPlayer find these: ' Check for attacking animation If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then If Player(Index).Attacking = 1 Then Anim = 3then change it to ' Check for attacking animation If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then If Player(Index).Attacking = 1 Then Anim = 4then find 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 Withchange it to With rec .top = spritetop * (DDSD_Character(Sprite).lHeight / 4) .Bottom = .top + (DDSD_Character(Sprite).lHeight / 4) .Left = Anim * (DDSD_Character(Sprite).lWidth / 5) .Right = .Left + (DDSD_Character(Sprite).lWidth / 5) End Withdone .u can now use 4x5 sprite, LAST ROW ON THE RIGHT SIDE is for attacking , work on paperdolls too!!but i dont think on npc's . ^^ Link to comment Share on other sites More sharing options...
Suppositoire Posted May 28, 2011 Share Posted May 28, 2011 @da_gad_pader:> try my own way , on moddirectDraw7 , on Public Sub bltPlayer find these:> > ' Check for attacking animation> If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then> If Player(Index).Attacking = 1 Then> Anim = 3> > then change it to> > ' Check for attacking animation> If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then> If Player(Index).Attacking = 1 Then> Anim = 4> > then find> > 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> > change it to> > With rec> .top = spritetop * (DDSD_Character(Sprite).lHeight / 4)> .Bottom = .top + (DDSD_Character(Sprite).lHeight / 4)> .Left = Anim * (DDSD_Character(Sprite).lWidth / 5)> .Right = .Left + (DDSD_Character(Sprite).lWidth / 5)> End With> > done .> > u can now use 4x5 sprite, LAST ROW ON THE RIGHT SIDE is for attacking , work on paperdolls too!!> but i dont think on npc's . ^^He working with no problem at all? And could you post an image of your sprite for example please Link to comment Share on other sites More sharing options...
da_gad_pader Posted May 31, 2011 Share Posted May 31, 2011 i created a tut for thathttp://www.touchofdeathforums.com/smf/index.php/topic,72272.0.html 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