Hi everyone, I am relatively new to Flash and Kirupa so bear with me.
While completing various tutorials I have decided to slowly develop a birds-eye view real-time RPG. It has no major plans, as I am just adding to it as I learn, and i do not want to get too far ahead of myself with goals and flowcharts etc.
At the moment I have managed to get a movement system going, with the WASD keys controling Up, Down, Left, Right movement, and the mouse rotating the upper body (and hence aiming the attacks).
My next aim is to create a simple combat system, where if the weapon hits a target, the target takes damage/dies, for now i will keep it simple and just want to get it working. I have tried using hit tests, where if the weapon hits an enemy, the enemy plays its death animation. I am sure this method is inferior and my lack of Flash knowledge and experience limits me to this, and therefore there are a lot of bugs, such as hits can be true without the weapon even touching the enemy .
I have googled around for a tutorial on this kind of combat system but have not succeeded.
If anyone could propose an alternative idea with a link to appropriate code/tutorial, i would very much appreciate it.
Thank you for your patience and guidance