Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Attack Paperdoll


Jumbofile
 Share

Recommended Posts

  • 1 month later...
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 . ^^
Link to comment
Share on other sites

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...