Use ADW to move the Player. Enemy will follow you. The "Artificial Intelligence" is the code used to move the Enemy follow you. The code is good in NPC enemies, since it can follow and attack a target.
This project's physics is similar to the physics in my other projects. ============CHANGELOG============== -Player now has your username above its head -If Enemy hits Player, Enemy will say "Hit!" -Enemy now attacks Player -targetX/Y are now the Player's co-ords -Added Player -Enemy Follows targetX and targetY ================NOTES=============== -If you duplicate Enemy, it will act the same as the original Enemy -This is the same for Player, however this may confuse Enemy =====================================