Some random code for mobs in a game Press K to choose a kit, arrow keys to move. The only kit is Knight, and it doesn't do much. WHAT I NEED : I need a code that detects the distance. I tried it but i dont know if it works. We also need scrolling.
This is the new version of the mobs. I made it so when you press space you dont say attack. The reason is it distracts the player and it is set to 2 seconds. So even if i did put say attack it would distract you. I also made it so the octobie dosent keep attacking. every 1 second it does a little bit of damage. This is so you dont go finish that battle with a couple of lives left. I also added the enemy some health so you could kill it. The octobie now really follows you.