answersLogoWhite

0


Best Answer

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!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make an enemy hit in game maker 7?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

How do you make a health bar on game maker 8?

Create an object without a sprite and add a draw event. then add a draw health action (in score tab) and add the coordinates and colors you desire. (x1,y1) is the top left corner and (x2,y2) is the bottom right corner.example: (x1:16, y1:16; x2:160, y2:32) will add a 16hx160w health bar near the top left corner. And you can mess around with it to put it anywhere on the screen and make it any size you want. but it will always be a rectangle using the top left corner (x1,y1) and the right bottom corner (x2,y2).Then go to the object you want to put the health on and add a collision event with the object that will affect its health and add a set score action (score tab) to it and add the amount of health you want to add or loose for that object when it collides with a bullet etc.example: for an enemy to loose 5/100 of its health when hit by a bullet add a collision event with a bullet to the enemy object and add a set score action (score tab) and put -5 (Relative) in the windowor a collision event with your character and a power up. put +10 or whatever in the collision on it.


If a baseball players batting average is 254 and he is at bat 3 times a game how many hits will he get in 52 games?

To do this you will need to see how many at bats he will have, so 52 x 3 = 156 at bats. Then you need to find out of those at bats how many times he will hit the ball. You would multiply 156 x .254 = He will get ~ 39.624 hits. However, you cannot get .624 of a hit, so he would have gotten 36 hits.


How do you beat level 22 in IQ ball?

Punch the first floaty until you get past the metal bar, then let go of stop punching the floaty and let it go it will hit the target and make it roll to you.


How many syllable does hitting have?

Two, because when you seperate hit and ting, there are two syllables. Hit/ting.


What keys do you hit to make a number for a foot note?

In order to create a footnote you need to press the following keys on the keyboard: Ctrl + Alt + F Ctrl + Alt + Shift + F Ctrl + Shift + F Depending on the program you are using one of the combinations above should work.

Related questions

The program is called Game Maker. In my Game Maker game when the character hits an enemy all the enemies die except the one that was hit so what can you do to fix that?

They need their own health variables rather than sharing the global health variable.


How would a role-playing video game be described?

Here, here's a way to describe it: Your character hits the enemy. After that, the enemy hits you, and so on. It goes on and on until one or the other is defeated. It depends on the video game. You could hit the enemy multiple times before the enemy attacks. That's how I would describe a role-playing game (RPG).


How do you make an enemy go another way in Game Maker 7?

It depends on the instance. Like if you wanted to make it go another way at a given position, then make an invisible wall object that issolid and make the enemy bounce off it. If you want it to follow a path, then make a path for it (you must be in advanced mode) and use the room backround to help you. Or, if you want it to move a different way when you hit something, then put the collision event for you and the other object and put the move fixed event in and make it apply to the enemy. Or, if you want it to move another direction at a certain time, use alarms. When the alarm goes off, put the new direction you want it to travel in the move fixed. Hope this helps.


What is the code on game maker 8 to set score to 0 if hit by something?

score = 0; Put the code in a collision event.


Why did mr.game and watch get replaced?

Mr.game an watch was replaced with mario but why? Nintindo wanted to make Mr.game to big hit but there was a cut by the writer aka maker he said that he wants to make a bigger hit


How do you use the word hit in a sentence?

I hit my enemy in the face


What is an additional blow?

its when you give a another blow to the enemy or let the enemy hit you


You are making a video game with Game Maker and every time the main character gets hit ONCE he dies how do you make him only lose one life how do you fix that?

Step event: if health < .1 { lives -= 1; health = 100; } if lives < 1 { game_end(); } Simple way to do it, really.


How do you do the skill point hey over here on ratchet and clank 1?

use taunter to make enemy hit forcefeild and die!


When Henry was a child he had a whipping boy what for?

He was a trouble maker it would make sense to say. Since its not allowed for a Prince to be hit they had a whipping boy for him.


What are the release dates for The Sheards - 2013 The Hit Maker 1-3?

The Sheards - 2013 The Hit Maker 1-3 was released on: USA: 21 April 2013


What happened after an enemy was hit a pilum?

they got killed