@Giantsfan877 When you use destroy instance(recycle bin), it destroys all. You can use destroy at position(dynamite), specify which object you want to destroy, and the position.
You can apply this same concept to anything too. try :
player event press s key,
action check object, self, object (enemy) (coordinates based on you if melee, or map if youre using uhh idk a detonator)
start of block
destroy at position object enemy (coordinates based on you if melee, or map detonator )
@armondoe No, don't do what @TheStickofWar said. That's a terrible way to do it. Go to the action that destroys the enemy and set it to "Other" instead of "Object: enemy" and it will only destroy the one that the player collided with.
If you create a new object for every single enemy, you're missing the whole point of being able to have multiple instances of the same object. You're also going to have a ton of identical collision events cluttering up your event list when you only need one.
@armondoe right click your enemy object, then duplicate it and name it something such as obj_enemy_2, then make a seperate collision event just like the first enemy :D
moi quand je veut lancée le jeu il me mais sa: D3D.CreateDevie0 d'erreur: s'il vous plaît vérifiez que vous avez une carte graphique répond aux exigences minimales et que vous les pilotes sont mis à date.If votre carte graphique dispose de peu de mémoire, essayez swithing votre ordinateur à une résolution inférieure. (Erreur: -2005530518)
@XOfSpades9 no, in gmkr its the other way around, if vspeed is higher than 0 its down, else its up, made this way 4 beginers, but my prob is real platform enemies, like when ur above a platform and he is on a lower platform, to make him move towards the end of the upper platform, jump and get on the upper platform to attack you, why do I want this, 4 a REAL boss, not those lame ones that just stand there shooting or move left to right...
All you did not explain is how to make player bounce from one wall to the other but i mmade lot of Mazes so i knew how to do that But this video helped me alot i thank you very much for posting this video :) may i send u a frioend request
I'm sorry you have a lot of hate comments. Okay, for those of you who it didn't work for, you obviously did something WRONG, because it worked for him in the video! The only problem I ran into was when I tried to run it, the enemy went through the wall and beyond. This is EASILY fixed by going into the enemy's event and making a Collision even with the Wall object. In that event, put the command "Reverse Horizontal." Viola. This is a GREAT and very simple tutorial! Thank you!
could you make a non head bouncing to kill an enemy tutorial, like say through attacks? My game I'm trying to make doesn't fit head bouncing to kill the AI.
@xEnigmatistx you shut up! at least someone here has a tutorial with commentaries cuz most people have worthless tutorials with text! man this tut is awesome.
You might want to delete the destroy instance action, go to enemy and put collision player if vspeed is larger than 0 for obj player destroy instance to self.
i hate that you use the drag and drop system. i want to se you program it fore real, gamaker uses the programming languages C# a very very very easy programming languages. if you want to work whithe games then you will have to leen real programing first
hey, this is a good tutorial, but there's one problem. when all of my 3 lives are up, it goes to the negatives. how do you make so if you ran out of 3 lives it would end the game?
@Dpeezy93 i think that you have to make an object called "control"(dont give it a sprite). have it set the number of live to whatever. and put the evnt "no more lives( i think its in "other") and have it end or restart the game or whaterver, just make sure to PUT IT IN EVERY ROOM OR IT WONT WORK!!!! this should fix it, if not im not sure i can help you.
respond soon plz
Badtothebones100 1 week ago
when i change levels my score breaks what the heck happend!!!!
Badtothebones100 1 week ago
i keep getting an error and it wont work please help! and reply fast
agentcoolguy100 1 week ago
he does not help start again
emmanuelo24 2 weeks ago
When theres more than 1 enemy it destroys all of the enemies! Please help! It makes no sense!
Giantsfan877 1 month ago 6
@Giantsfan877
Hey maybe i´ve got the answer ...
I think you set at "Destroy the instance" :
Applies to : Object : "Yourenemy"
But you only have to click "Other" not Object ...
I had the same problem :D
HeavyPootisGuy 1 month ago
@Giantsfan877 When you use destroy instance(recycle bin), it destroys all. You can use destroy at position(dynamite), specify which object you want to destroy, and the position.
You can apply this same concept to anything too. try :
player event press s key,
action check object, self, object (enemy) (coordinates based on you if melee, or map if youre using uhh idk a detonator)
start of block
destroy at position object enemy (coordinates based on you if melee, or map detonator )
end of block
HalfGermanAllHammer 3 weeks ago
thanks dude that was awsome i have now made mario kart with that now thanks
mdogganator 2 months ago
@armondoe No, don't do what @TheStickofWar said. That's a terrible way to do it. Go to the action that destroys the enemy and set it to "Other" instead of "Object: enemy" and it will only destroy the one that the player collided with.
If you create a new object for every single enemy, you're missing the whole point of being able to have multiple instances of the same object. You're also going to have a ton of identical collision events cluttering up your event list when you only need one.
Dfaran42 2 months ago
how come nobody makes a game from scratch? it would tell you where things are and how to do them
XxTOTALROCKSTARxX 3 months ago
@XxTOTALROCKSTARxX i'm using scratch its easier :D
StylerPaddy1850 2 months ago
you did not explain is how to make player bounce from one wall i need to know please :3
dirrajnoswal 3 months ago
This has been flagged as spam show
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
armondoe 3 months ago
when ever i try to make multiple enemies, when i jump on one they all disapear. can u help me????
armondoe 3 months ago 5
@armondoe right click your enemy object, then duplicate it and name it something such as obj_enemy_2, then make a seperate collision event just like the first enemy :D
message me if you still have trouble
TheStickofWar 3 months ago
@armondoe see mycomment to giantsfan877
HalfGermanAllHammer 3 weeks ago
lol when I make it afterwards the enemy blows up in the sky! and then disappers! Pls reply for this help.
1234userkills 2 days ago
moi quand je veut lancée le jeu il me mais sa: D3D.CreateDevie0 d'erreur: s'il vous plaît vérifiez que vous avez une carte graphique répond aux exigences minimales et que vous les pilotes sont mis à date.If votre carte graphique dispose de peu de mémoire, essayez swithing votre ordinateur à une résolution inférieure. (Erreur: -2005530518)
yanis13109 3 months ago
...ummm im looking this over, and wouldnt that make it so that if you jumped UNDERNEATH and enemy it kills it too?
XOfSpades9 3 months ago
@XOfSpades9 no, in gmkr its the other way around, if vspeed is higher than 0 its down, else its up, made this way 4 beginers, but my prob is real platform enemies, like when ur above a platform and he is on a lower platform, to make him move towards the end of the upper platform, jump and get on the upper platform to attack you, why do I want this, 4 a REAL boss, not those lame ones that just stand there shooting or move left to right...
spartanxxxhybrid 3 months ago
how do i give it more lives
dinosaur5009 5 months ago
how do i set the gravity for the enemy? it doesn't work for me:(
and he walks right until he is out of the screen
cakeezz 5 months ago
All you did not explain is how to make player bounce from one wall to the other but i mmade lot of Mazes so i knew how to do that But this video helped me alot i thank you very much for posting this video :) may i send u a frioend request
TheMiddleMan262 6 months ago
play unity3d and you will regret this crap jus try it
teamstick89 7 months ago
this gamemaker is rubbish go onto unity3d and make amazing games which you can sll like a proper game!
teamstick89 7 months ago
@teamstick89 GM is not rubbish, it is if you dont know how to use it ;)
spikerdude111 7 months ago
@spikerdude111 have you even tried unit3d just check it out then you will see my friends got this is rubbish compared to unity3d so shutup
teamstick89 7 months ago
@teamstick89 i know how it works, its mostly made for making 3D games, whereas GM is for 2D, so i dont see this going anywhere ;)
spikerdude111 7 months ago
@teamstick89 You can sell GM games -_-
TheKillaFruit 6 months ago
you don't need to put +(number). the only symbol you need is - when taking away a value.
Fireblade2472 7 months ago
IT WORKS! THANK YOU SO MUCH!!!!!
GamesJoel 7 months ago
ty so much that glitch was really bugging me
Chey4551 7 months ago
Can you help me ? , you didn't show the enemy's collision to the block , now I it doesn't work for me.
benjaminjosso1 8 months ago
@benjaminjosso1 I did collision with block
Reverse horizontal direction.
Fireblade2472 7 months ago
@Fireblade2472 Ty
benjaminjosso1 7 months ago
@benjaminjosso1 np
Fireblade2472 6 months ago
I added points, but it just keeps on rising, even if I didn't kill the enemy
Help me please!
Shadic1134 8 months ago
waht di you do with the enem collsion with wall? for the rest it worked epicly nice
iskaj1 8 months ago
I'm sorry you have a lot of hate comments. Okay, for those of you who it didn't work for, you obviously did something WRONG, because it worked for him in the video! The only problem I ran into was when I tried to run it, the enemy went through the wall and beyond. This is EASILY fixed by going into the enemy's event and making a Collision even with the Wall object. In that event, put the command "Reverse Horizontal." Viola. This is a GREAT and very simple tutorial! Thank you!
Schmepic 9 months ago
my enemy just goes through the wall then i repeated the collision settings i have the player set to he just hits the wall and stops
RazorRomsLPChannel 9 months ago
wow, lots of hate comments. :P
Hamlord117 9 months ago
hihivhihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihi
SuperMydrive 9 months ago
mine doesnt move it stays inthe same stop
unknown2244 9 months ago
Mine destroys enemy when I run into him and restarts but if I jump on him it defeats me plz help
jamesoxo11 10 months ago
FAILFAILFAILFAIL it sucks, didnt work, I hate it
SWHinc 10 months ago
Comment removed
TheJuniorward 10 months ago
You dont know what ur talking about noob!! waste of my life! i want my 6:19 minutes back!
BreakingCurfew404 10 months ago
Comment removed
TheJuniorward 10 months ago
You dont know what ur talking about noob!! waste of my life! i want my 6:19 minutes back!
BreakingCurfew404 10 months ago
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOB!
kingbor25 10 months ago
You dont know what your talking about.
kingbor25 10 months ago
could you make a non head bouncing to kill an enemy tutorial, like say through attacks? My game I'm trying to make doesn't fit head bouncing to kill the AI.
ade2007ade 11 months ago
@xEnigmatistx you shut up! at least someone here has a tutorial with commentaries cuz most people have worthless tutorials with text! man this tut is awesome.
RokuNoRaiden 11 months ago
you can learn that in the official example.. this video is worthless
xEnigmatistx 1 year ago
This Video Sucks!
stitchhugger 1 year ago
#$#@ it dosnt work for me
minitos1 1 year ago
cm on guys give a thumb up for his first try/video
minitos1 1 year ago
Thanks dude! but do i have to make more enemy objects becuse if i use the same in three all die if i hit one....
TheEuropeGamer 1 year ago
hey when i do this it says error:if vspeed is larger than 0
unexpected symbol in expression wat do i do now please help u are d only one who can,or maybe.
madformaddysmaddies 1 year ago
@madformaddysmaddies He used a variable check, that wasn't code. In code you would put:
if (hspeed > 0) {image_index = 0}
if (hspeed < 0) {image_index = 1}
PizzaNuggetz 10 months ago
If you wanna learn how to make simple player movement go to Game Maker Simple Player Movement By TheGMANKiller875
TheGMANKiller875 1 year ago
@TheGMANKiller875 but i wont
dariokustura 1 year ago
@dariokustura Why? you don't?
TheGMANKiller875 1 year ago
You don't set object enemy but you select OTHER.
SELF = PLAYER
OTHER = ENEMY
OBJECT ENEMY = ALL ENEMIES IN THE ROOM
SuperXD25 1 year ago
Thank you! This works PERFECTLY!
QUAKE495 1 year ago
You might want to delete the destroy instance action, go to enemy and put collision player if vspeed is larger than 0 for obj player destroy instance to self.
HyperX54321 1 year ago
Problem : When you hit 1 enemy it destroyes ALL enemys in the room!
HyperX54321 1 year ago
tnx this worked =)
blehhhhh1 1 year ago
Shouldn't you destroy ''other'' instead of Object enemy?
Kevinskie555 1 year ago
@Kevinskie555 no because that might destroy the walls i think
Pokeplaya128 1 year ago
@Pokeplaya128
But if you destory ''object enemy'' all the enemies in the room will die right???
Kevinskie555 1 year ago
@Kevinskie555 oh.........uh.......im not sure im not putting more than 1 enem in the same room but i never thought of that...
Pokeplaya128 1 year ago
thanks!
mrlightning291 1 year ago
i hate that you use the drag and drop system. i want to se you program it fore real, gamaker uses the programming languages C# a very very very easy programming languages. if you want to work whithe games then you will have to leen real programing first
DeathbloomSWE 1 year ago
hey, this is a good tutorial, but there's one problem. when all of my 3 lives are up, it goes to the negatives. how do you make so if you ran out of 3 lives it would end the game?
Dpeezy93 1 year ago
@Dpeezy93 i think that you have to make an object called "control"(dont give it a sprite). have it set the number of live to whatever. and put the evnt "no more lives( i think its in "other") and have it end or restart the game or whaterver, just make sure to PUT IT IN EVERY ROOM OR IT WONT WORK!!!! this should fix it, if not im not sure i can help you.
jmlport98 1 year ago
your tut is a lot like noxaexxx's
Worgenschorgen 1 year ago
quite good but get this program! Camtasia studio just torrent it or something!
the screen was really shaky so get that and you'll be sweet!
CfmFilms 1 year ago
@TheSacredCreator Thank you, im glad that this helped
HouliGM 1 year ago
@HouliGM does it have to be pro version to make this??
willmage13 1 year ago
@willmage13 no
reddragontlc 1 year ago