da_gad_pader Posted June 30, 2011 Author Share Posted June 30, 2011 how can i play an animation in certain events ?example :when the player level up then plays animation 1whats the code for that? Link to comment Share on other sites More sharing options...
The New World Posted June 30, 2011 Share Posted June 30, 2011 SendAnimation Link to comment Share on other sites More sharing options...
da_gad_pader Posted June 30, 2011 Author Share Posted June 30, 2011 like this?```Sub CheckPlayerLevelUp(ByVal index As Long) Dim i As Long Dim expRollover As Long Dim level_count As Long level_count = 0 Do While GetPlayerExp(index) >= GetPlayerNextLevel(index) expRollover = GetPlayerExp(index) - GetPlayerNextLevel(index) ' can level up? If Not SetPlayerLevel(index, GetPlayerLevel(index) + 1) Then Exit Sub End If Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 5) Call SetPlayerExp(index, expRollover) level_count = level_count + 1 SendAnimation = 1``` Link to comment Share on other sites More sharing options...
Rithy58 Posted June 30, 2011 Share Posted June 30, 2011 Here's how to use SendAnimation:SendAnimation(MapNumber, AnimNnumber, Map_X, Map_Y)There is optional argument but I don't think you need it.Sincerely,Rithy Link to comment Share on other sites More sharing options...
da_gad_pader Posted June 30, 2011 Author Share Posted June 30, 2011 > SendAnimation(MapNumber, AnimNnumber, Map_X, Map_Y)i doubt this code play the animation on the player locationhow can i play the animation on the player location? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted June 30, 2011 Share Posted June 30, 2011 @da_gad_pader:> i doubt this code play the animation on the player location> > how can i play the animation on the player location?Get the player's X and Y and use it as Map_X and Map_Y. >_< Link to comment Share on other sites More sharing options...
da_gad_pader Posted June 30, 2011 Author Share Posted June 30, 2011 and what if the player is on different locations? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted June 30, 2011 Share Posted June 30, 2011 @da_gad_pader:> and what if the player is on different locations?It plays where he was standing before. If you want them to stand still, make it so they can't move while the animation is playing. A better solution would be to move the animation with the player as he moves. Link to comment Share on other sites More sharing options...
Rithy58 Posted July 1, 2011 Share Posted July 1, 2011 Okay, dude. This is Source Editing.You need to learn VB6 before ACTUALLY source edit.If you know how a method or function work, you would have figured how to do it already.You should be able to understand this : Call MethodName(Argument, Argument, …)Sincerely,Rithy 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