Game Development – Part 6

Weapons and Attacking

It’s time to help our player defend himself from the evil ninjas. This requires the use of conditionals and hit events once again. Each time the ninja is “hit” by the sword, he will move away on the x axis and lower it’s own health.

Use the left and right arrow keys to cause the character to move. Pressing the up key will cause the character to jump into the air. Press and hold the space bar to use your sword. If it’s not working, please click on the stage first to activate the controls.

You need Adobe Flash Player to view this content.