Why did you make it global? There's seriously no point it just limits you to different names for each enemy. If you take out the "global." then the number of enemies is unlimited.
@ThePach3co u see at 1:59 is has set variable to -1 and then under it destroy the instance...well there is already a destroy the instance at the very bottom and all you need is the one at the bottom and then it should work
my game maker does not work do not run the game told me something of d3d8.dll download this file and told me some ddraw.dll download it and I get an error PLEASE HELP MEE!!!
it works - great! the only bad thing about this is, that this only works for 1 enemy at one time - if you wanna have different enemys different lifes, so you have to do it again with an other variable
lol it said "enter ur text here" Y SHOULD I?
TheROBLOXMOVIEGUY 5 months ago
Why did you make it global? There's seriously no point it just limits you to different names for each enemy. If you take out the "global." then the number of enemies is unlimited.
phantomhopper 10 months ago
Comment removed
Eman9405 1 year ago
Comment removed
Eman9405 1 year ago
unknown variable hp :/
Cakekid2500 1 year ago
unkown variable hp
iRedPowerRanger 1 year ago
GAAAA I wanted when he dies A animation comes up GAAA
despereaux16 1 year ago
Coooooooool!!!!!!!
Thanks!
ThePC007 1 year ago
when i shoot him, he dies in just one hit! What is the problem here :S?
ThePach3co 1 year ago
@ThePach3co u see at 1:59 is has set variable to -1 and then under it destroy the instance...well there is already a destroy the instance at the very bottom and all you need is the one at the bottom and then it should work
aphradite05 5 months ago
Thanks!!! :-)
tretey 1 year ago
thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks! thanks!
and thanks! this was very VERY good! you helped me alot with my game!
vrao897 1 year ago
thx it worked!
Drapy5 1 year ago
what the hell is purpose of having sound there...
javily6 2 years ago
thank u!
1996quique 2 years ago
thank you
darkmajik23 2 years ago
my game maker does not work do not run the game told me something of d3d8.dll download this file and told me some ddraw.dll download it and I get an error PLEASE HELP MEE!!!
KeviNxkz 2 years ago
It works for me, watch the vid again and find your mistake 5/5!
Dlaxr346 2 years ago 2
wen i shoot him, he automatically dies
Xeivous 2 years ago
loooove it so cool thx helped alot
tejla3 2 years ago
*Favorites video*
SyncTheWolf 2 years ago
Codes are very important to learn, I think I'll stick to those.
ShoenenJumpLuffy 2 years ago
lol i can always tell the show in background on every single type of tutorial lolXD (Man Vs. Wild)
XxL3G0xX 2 years ago
create: global.hp = 3
collision_bullet:global.hp -=1
step_enemy: if global.hp < 1 {instance_destroy()} did I have to waiste 5 min. for that?
unicyclingvuurwerk 3 years ago 2
yes =] cause it works
123blademan1 2 years ago
You can easily shorten this down to 30 secounds.
Use editing instead of Notepad for one, also get to the point faster.
Anyways It's extremly simple:
ENEMY:
Create: Set Variable (hp = 3)
Collision w/ Bullet: Set Variable (hp -= 3)
Step:
Test Variable (if hp < 1) Start Block ( {) Destroy (instance_destroy()) End Block ( })
virgildog1950 2 years ago
@unicyclingvuurwerk this crashes my game
AttackTheRain 2 months ago
it works - great! the only bad thing about this is, that this only works for 1 enemy at one time - if you wanna have different enemys different lifes, so you have to do it again with an other variable
5/5 + fav^^
PSPGameplay456 3 years ago
u r right man check my other acc it shows how to do multiple enimies...
my other acc is:
tutorialforgamemaker
123blademan1 2 years ago
doesnt work! no message! but if i try hes dead in one time!
steelkenny 3 years ago
it worked for m didnt it? it should work for you... so dont complain your th one who did something wrong
tutorialforgamemaker 3 years ago
if u cant see dont complain do fullscreen and i mite redo it lol
123blademan1 3 years ago