Hello, Been working for about 6 months now on my own indie title: Space Adventure. I need help no how to implement a damage mechanic as they did in the old Megaman and Castlevania games. I am meaning when megaman would take damage from the enemy he would jump back, and would be invincible for a few seconds.
So far my engine handles the user being hit by the enemy, and vice versa. Damage is taken by the user/enemy, but he stands still, no real damage mechanic has been worked out.
I would appreciate any help and thank you in advance!!!
The engine and game are being developed using strictly Java and slick2d. I have 5+ years software development and programming experience.