Guest Posted May 9, 2010 Share Posted May 9, 2010 How can i do attack animation like if i attack it comes up an slash animation.I think i have to animate the items dath way but im not shure.If someone can post me a tutorial on how to do it. Link to comment Share on other sites More sharing options...
1123121 Posted May 9, 2010 Share Posted May 9, 2010 http://www.touchofdeathforums.com/smf/index.php/topic,58518here is tutorial Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 ty Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 Doesnt work wen i try it player doesnt do dmgSub OnAttack(Index, Damage)Dim TargetIf Int(Damage) > 0 ThenIf Int(GetPlayerTarget(Index)) > 0 Then Call SpellAnim(27, GetPlayerMap(index), GetNpcX(GetPlayerMap(index), GetPlayerTargetNpc(index)), GetNpcY(GetPlayerMap(index), GetPlayerTargetNpc(index)))Target = GetPlayerTarget(Index)Call DamagePlayer(Index, Target, Damage)ElseTarget = GetPlayerTargetNPC(Index)Call DamageNPC(Index, Target, Damage)End IfEnd IfEnd Sub Link to comment Share on other sites More sharing options...
Zop Posted May 9, 2010 Share Posted May 9, 2010 I'm pretty sure it's supposed to go at the very top?```Sub OnAttack(Index, Damage) Dim Target Call SpellAnim(27, GetPlayerMap(index), GetNpcX(GetPlayerMap(index), GetPlayerTargetNpc(index)), GetNpcY(GetPlayerMap(index), GetPlayerTargetNpc(index))) If Int(Damage) > 0 Then If Int(GetPlayerTarget(Index)) > 0 Then Target = GetPlayerTarget(Index) Call DamagePlayer(Index, Target, Damage) Else Target = GetPlayerTargetNPC(Index) Call DamageNPC(Index, Target, Damage) End If End IfEnd Sub```Idk though. Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 gona try Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 Perfect work ty :azn: Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 And 1 more question do you know a program dath can help me make paperdoll more easy i am making an side scroll game Link to comment Share on other sites More sharing options...
Zop Posted May 9, 2010 Share Posted May 9, 2010 That's as easy as it'll get, Check out the [Graphics Tutorials](http://www.touchofdeathforums.com/smf/index.php/board,291.0.html). there's some pretty good "Techniques" there. Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 ty :azn: 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