My Brave Shine Posted April 1, 2014 Author Share Posted April 1, 2014 how to put a Animation when the NPC dies? Link to comment Share on other sites More sharing options...
Deeman777 Posted April 1, 2014 Share Posted April 1, 2014 My suggestion for this is to learn VB6 and then add a section of code to add it in somewhere. I am sure someone who actually knows the engine better will give you a better explanation. Sorry I couldn't be more help. Link to comment Share on other sites More sharing options...
Link Posted April 1, 2014 Share Posted April 1, 2014 First of all which engine are you using? For any Dx7 open source engine you'll find the event where a NPCs hp reaches zero and add a snippet of code that changes the sprite at that point, of course you'd need a separate sprite sheet and folder to keep track of the death, in any case on the event of death I suppose you could use a tmr as well depending on how long you'd like the sprite to show as dead.You'd need a new sprite sheet to be read upon the npc dying and of course no one can really tell you how to do it, but as a programmer only tell you how to go about doing it or giving you a psuedo code to work from. I haven't done vb6 in ages, but if you're using a Dx7 engine like EO 2.0 or such I can write it for you in spare time. Link to comment Share on other sites More sharing options...
My Brave Shine Posted April 1, 2014 Author Share Posted April 1, 2014 Thx guys, really are already helping.. I using the dx8 engine, E Final Frontier. in my mind, i think to set a "animation" on Npc Hp is Zero :x, but i need this set to ALL Npcs, One Animation Standard, for every Npcs Dead, call that Animation during 3 or 4 frames :x srry my very bad english :x I do the best i can. Link to comment Share on other sites More sharing options...
PVJsquad Posted April 2, 2014 Share Posted April 2, 2014 you just add the animation death in Client side on sub```Private Sub HandleNpcDead(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)```and make sure if the animation has been finished thenadd```Call ClearMapNpc(n)``` 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