How do you make an enemy hit in game maker 7?

1 answer

Answer

1128430

2026-04-16 07:55

+ Follow

Simple. First, make a Sprite of the enemy hit. Make sure you have lives for the character you control. If not, go to score, lives, and click set lives. You can do the same with health. Then make another object that's ONLY for the enemy attacking, not the enemy itself. Remember, the enemy has to be an object too. For the enemy itself, click collision. Then select the object you want it to hit. Now make the action. Go to main1, Change Instance. It applies to itself, of course. Make the enemy turn into the enemy attacking object. Go to the enemy attacking's object and then create an Event. Click Other and then Animation End. As for the actions, you can make a sound. Then for the character it's hitting, go to the characters object, create a collision event between the enemy attacking and the character, and set it's lives one life less than what they had to begin with. Your done!

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.