Posted By: DLively
Collision question - 06/11/09 19:57
Hello Everyone,
I am trying to use the sword demo style of code, from AUM12(I think ) in my game.
It works as so:
When player is in his attack frames, the sword traces from the tip of the blade, to the hilt; and if result!=0 and if you!=null, you.health -= sword power.
it works, but only if im hitting near its x position; not its animated frame position.
how do i set it up so that my enemies will be able to be hit anywhere?
Hope thats descriptive enough
http://i149.photobucket.com/albums/s69/sdsdinc/SWORDPROBLEMO.png
thanks for you time.
I am trying to use the sword demo style of code, from AUM12(I think ) in my game.
It works as so:
When player is in his attack frames, the sword traces from the tip of the blade, to the hilt; and if result!=0 and if you!=null, you.health -= sword power.
it works, but only if im hitting near its x position; not its animated frame position.
how do i set it up so that my enemies will be able to be hit anywhere?
Hope thats descriptive enough
http://i149.photobucket.com/albums/s69/sdsdinc/SWORDPROBLEMO.png
thanks for you time.