It would be the same as a player damaging an enemy. You’ll probably have an if that says: If enemy is touching player Then health = health -1. Inside the if, and before you subtract from health, you’ll want to move the enemy to a new location so they don’t keep touching over and over again. Hope that helps
@@computerscienceandcoding7741 thanks it helps but I'm talking about a enemy in a side scrolling platform. But this still helps. Another off topic question what is web site lab? Like brutal mayhem in one of the game lab tabs
Okay this is off topic but can you show me i video or something about a enemy damaging a player. All of your videos are great 👍.
It would be the same as a player damaging an enemy. You’ll probably have an if that says:
If enemy is touching player
Then health = health -1.
Inside the if, and before you subtract from health, you’ll want to move the enemy to a new location so they don’t keep touching over and over again. Hope that helps
@@computerscienceandcoding7741 thanks it helps but I'm talking about a enemy in a side scrolling platform. But this still helps. Another off topic question what is web site lab? Like brutal mayhem in one of the game lab tabs