This probably has an easy answer, but here it goes anyway. I need to know how to make an animated hit effect. Think like the sprite explosion effect with the rockets from the templates. I just need a really easy to learn and impliment code to make an animated sprite at the point of impact. note (I already have the collision detection of the sword and the enemy done).
Re: Hit point sprite
[Re: exile]
#90765 09/21/0604:0609/21/0604:06
Look at grimber fps tutorial. It shows how to make bullet holes from guns... Dont think itll be to much different... Also in one of the aums theres a code to make a enemy react differently depending on where he was hit. That would probaly be a good place to start as well.
That might work, but I am looking for somthing a little different. You see, I am trying to add a little spark (In this case an animated sprite) that would appear at the collision point of the sword and the enemy. sort of like the attack sparks in tekken or soul calibur. here is the image to give you an idea of what I hope to achieve.
Last edited by exile; 09/21/0608:44.
Re: Hit point sprite
[Re: exile]
#90768 09/21/0620:1209/21/0620:12
Look up vec_for_vertex,ent_create and ent_remove...
then in your script where it checks to see if its made contact with the enemy use vec_for_vertex to get a position from one of the vertices of your sword and then use ent_create to create the sprite at that position and once its finished use ent_remove to remove it again.
Just a thought... havent tried it but in theory I think it should work.