If any you guys need help, I HIGHLY recommend going to Wizirdi's YouTube channel. His tutorials will teach you how to code in game maker. They're VERY good tutorials and he actually SPEAKS! OMG ;)
PS: I'm not spamming nor is this a scam. I'm just trying to help the beginners at game maker find a good tutorial so they can learn.
how do i make a character that both moves and shoots toward the mouse? and is it possible to edit the code so that when the player has x number of kills the rate of fire changes.
whoa. I just used variables and they sometimes make my character unable to move. Could I somehow speed it up with just using variables? He just shoots which way he faces direction not the mouse.
This is great for a top down, but what about for side scrollers? Please could anyone who knows how to make a side scrolling character animate so he is facing the mouse tell me how to do it? Sorry to bother you, but I needed to ask. Thanks.
@entish01 lol, all u do is make the sprite a side view, and make the gun rotate with ur mouse, then put in basic phisics(grav, fric, ground(normal force), ect.)
Okay guys if your reading this I don't know why people are still going to this video instead of my new one. My new vid is MUCH better and is complete and detailed and as far as I know correct. The link to it is the box at the beggining of this video...
oh yeah... take note , you will have to make it COUNTER-CLOCK WISE , or else it wont look correct , if it's clock wise it's back is facing your mouse instead(counter clock wise effect) of facing your mouse
i dont know how you guys did this, i did the same as you, but my obect is going the other way, if i move my mouse to the left, my object is rotating to the right, when mouse goes to the right, object goes to left xD muhaha, anyway, i found a better tutorial, a easier one
Hey could someone please tell me how to change the rate of fire? Cuz this is perfect and easy, but I don't want the bullets to spray. Someone help please, thanks.
sorry about the stream of comments my dunno what i was doing anyways i gotaa make it so i can move and jump coz this messes up my gravity on the game i also need the bullets to dissaper by them selves arfter a while and they have a puase time
I forgot to mention, if you want your bullets to be "semi auto" change global mouse to "left mouse click". as for quality goes idk what to say as my comp is nearly brand new
Oh God it is....it is and Windows 7 will be just as bad if not worse. If you really hate it that much, do what I did and dual run Vista and XP or Vista and Ubuntu, which I found was a better combination.
And don't ask me what brand and crap this is, I'm honestly not sure, and I don't care anymore because I've figured out how to add more levels/etc. without any lag.
that's easy, are you a beginner? Just curious, but first, make a player sprite, make an object, the object should be the player sprite, make keyboard events however you like and then there are moving directions actions and, well you'll find out
xDxDxDxD i dont know what i did wrong im not useing the pro ver and i tried it on one of my previous games and it flies around like a space ship whereever i click and it leave a small trail of the bullet i made xDxDxD
there in the description Code: Copy form here to the places shown in the video. image_index = direction-90 direction = point_direction(x,y,mouse_x,mouse_y) speed= 0 if keyboard_check(vk_up)speed=3 (this part goes under "step" (the next part goes under "mouse") b=instance_create(x,y,bullet) b.direction=direction speed= 15
getting tired of re-posting this reply... but here I go again...
Sorry for the wait, my computer was broken for a while. Uhhh I was toying with it for a bit and all you need to do is: Instead of using the global mouse thing in the video, use global mouse left pressed! That should solve your problem, I think at least it worked for me ^_^
I think you just have to alter the code like where it says keyboard vk(up) or something like that duplicate it 4 time and make it the "WASD" keys instead but i'll have to look intoit, ive been busy lately
Sorry for the wait, my computer was broken for a while. Uhhh I was toying with it for a bit and all you need to do is: Instead of using the global mouse thing in the video, use global mouse left pressed! That should solve your problem, I think at least it worked for me ^_^
Sorry for the wait, my computer was broken for a while. Uhhh I was toying with it for a bit and all you need to do is: Instead of using the global mouse thing in the video, use global mouse left pressed! That should solve your problem, I think at least it worked for me ^_^
Thanks, I'm glad to help you with pretty much anything that I know >.> well you should check out my other videos, they probably aren't as helpful as this one though. Btw please spread the word about me, thanks!
i can't put a video in my game it give me this error
bari96flavios 22 hours ago
number 1 of trigger event
how can i put my video on start room? it give me this error
Video file not found (or name too long) ...
bari96flavios 22 hours ago
This has been flagged as spam show
If any you guys need help, I HIGHLY recommend going to Wizirdi's YouTube channel. His tutorials will teach you how to code in game maker. They're VERY good tutorials and he actually SPEAKS! OMG ;)
PS: I'm not spamming nor is this a scam. I'm just trying to help the beginners at game maker find a good tutorial so they can learn.
RPGmario64 1 week ago
Thanks
Misazekagay 3 weeks ago
It all worked out good. Exept my charecter did not follow the mouse.
xNikkiRoxSox 2 months ago
i cant read the part where you put that move towards in the create event for the bullet
562tap 4 months ago
OK, I got the lite edition, and this is what I need, but I want the character to be from a side view, not top-down. Have a tutorial for that?
Unitx21 5 months ago in playlist Game Maker
how can i make the movement wasd instead of arrow key up toward the mouse?
abv1001 5 months ago
hey help i dont see bullet only blue screen tryed :(
Dino4569studio 7 months ago
Very Nice
AlphaGuitarGamer 8 months ago
@kingsong2010 maybe is your bullet object not called bullet and you must fill in the name of your bullet object
oli4duys 8 months ago
for single shot , just change global mouse left click to global mouse left pressed
hydropen1 8 months ago
mine dnt wrk it only moves :(
bubber114 10 months ago
it came up with this what should i do=FATAL ERROR in
action number 1
of Step Event
for object gunner:
COMPILATION ERROR in code action
Error in code at line 5: (this part goes under "step" ^
at position 8: Symbol ) expected:[
billyakaeaster 10 months ago
@billyakaeaster same with me
lanturn97 9 months ago
@billyakaeaster you werent supposed to copy the: this part goes under "step"
theotherwhitemeat841 8 months ago
This has been flagged as spam show
i shot and bullet stay on right place
why??
flokize 1 year ago
i shot and bullet stay on right place
flokize 1 year ago
thx man finally i got it right thanks a million
pivotfan23 1 year ago
i have a tip go to the create on bullet and make code "image_index = direction" so the bullet follow the direction :D
RatBrain007 1 year ago
thanks! my tank game is beast now!
gabrielandrose 1 year ago
okay problem. my character keeps spinning, and he isn't following the mouse... some one help?
bolbug 1 year ago
how do i make a character that both moves and shoots toward the mouse? and is it possible to edit the code so that when the player has x number of kills the rate of fire changes.
itube141 1 year ago
omg, can there at least be one video that shows how to put audio to a gun?!?!?
every audio video just shows the sound of shooting something. not the sound of the gun. NO HELP! SO SOMEONE HELP! -__-
codydalla 1 year ago
@codydalla i can make a tut
bladeb0y85 1 year ago
@codydalla i can make a tut
then i will send the link
bladeb0y85 1 year ago
whoa. I just used variables and they sometimes make my character unable to move. Could I somehow speed it up with just using variables? He just shoots which way he faces direction not the mouse.
StalkerXChicks 1 year ago
thnx man!
You helped alot and i hope you'll make some more cool tutorial like this! :)
Prasantrules 1 year ago
i got an error ERROR in
action number 1
of Mouse Event for Glob Left Button
for object Space Ship (1.0):
Error in code at line 1:
b=instance_create(x,y,bullet) ^
at position 23: Unknown variable bullet
KingSongs2010 1 year ago
what does it mean when the codes turn red
KingSongs2010 1 year ago
the easier way make rotation is with no 361 frames make a end step event and put image_angle = direction
HumorOfTW0 1 year ago
Comment removed
RobbyY97 1 year ago
how to make a enemies
Daavitis911 1 year ago
"Failed to load the game data. File seems corrupted"
That comes when i wanted to start ethe game.
Can you help me?
By the way, great tutorial, thumbs up!
SyndicateViper 1 year ago
if you want to have a flat bullet instead of a round bullet then i know how! right here!
STEP 1:Be sure to make your flat bullet so it points right
STEP 2:In the create event put a code and type in: image_angle=point_direction(x,y,mouse_x,mouse_y);
--And of course make the bullet shoot at the mouse! that's the best!--
killer24norway 1 year ago
ty soooo much dide, iv been all over forums looking for this code
(i cant code for my life) and the help stunk, then i google "gm8 shoot at mouse" and find this vid, and create a basic game in about 2 mins!
killzaksolon 1 year ago
there is a much easier way (without scrpiting)!!!!!
lolaapje123 1 year ago
mine aint working, when i point to certain points, my bullets get created away from my guy. =(
brutal155 1 year ago
dohh... guys all the code is:
STEP EVENT:
image_angle=point_direction(x,y,mouse_x,mouse_y);
MOUSE LEFT BUTTON:
Bullet = instance_create(x,y,obj_bullet_player)
bullet.direction = point_direction(x,y,mouse_x,mouse_y)
bullet.speed = 14
And anyways you can request game maker tutorials from me and also watch my platform game tutorial:D
IpkmoldI 1 year ago
Eh, complocated... :(
Can sombody please tell me how to install ingame tutorials?
Cuz I downloaded then I just dont know how to install them
SawedOffShotgun441 1 year ago
This is great for a top down, but what about for side scrollers? Please could anyone who knows how to make a side scrolling character animate so he is facing the mouse tell me how to do it? Sorry to bother you, but I needed to ask. Thanks.
entish01 1 year ago
@entish01 lol, all u do is make the sprite a side view, and make the gun rotate with ur mouse, then put in basic phisics(grav, fric, ground(normal force), ect.)
killzaksolon 1 year ago
lol at 2:33 you said: takes a little while to load, it took me like a 10th of a second XD
btw nice video :) 5/5
PROsnipekid 1 year ago
very easy works just fine but i dint use gm7 but i used gm8
hoshiyoki 1 year ago
It's dosen't working to me.
And I use a Game Maker 7 Pro
gipsybreak 1 year ago
Where I can Download
Game Maker 7
gipsybreak 1 year ago
@gipsybreak
You can download game maker8 FREE At Filesfree.yolasite.com
natedog9101 1 year ago
yes, but what i want to know is how to make something ROTATE TOWARDSyour mouse.
manyfans101 2 years ago
i love game maker, check out my vids. im rating this as the best
khmerkiller2 2 years ago
Okay guys if your reading this I don't know why people are still going to this video instead of my new one. My new vid is MUCH better and is complete and detailed and as far as I know correct. The link to it is the box at the beggining of this video...
haydenap 2 years ago
@haydenap i tried your newest video and i got some erorrs, this video by far is way better, Thanks
KnightxOfxKanavan 1 year ago
@haydenap when i use this to shoot i cant move when i add the basic movements whats up with that?
MrBlackeyes11 9 months ago
oh yeah... take note , you will have to make it COUNTER-CLOCK WISE , or else it wont look correct , if it's clock wise it's back is facing your mouse instead(counter clock wise effect) of facing your mouse
leafinmilo 2 years ago
lol you should continue making this game and upload it on yoyogames . (com)
SuperIceman12345 2 years ago
srry but i dont see the code
can you send me them!
please
(its a nice video i lurn very much)
groenvoetbal 2 years ago
go to the vid discription and press MORE INFO , then you will see the 2 scripts
leafinmilo 2 years ago
how do i put achviements in a game?
3542954 2 years ago
Finally a tutorial that
1. i can use, cause i needed to learn this for a game.
2. FOR ACTUALLY HAVING AN GM TUTORIAL THAT SHOWS THE WHOLE SCREEN AND IS NOT ZOOMED IN!!!
BadPeaceDK 2 years ago
thanks man this tutorial is sweet!
TheZodiac12345 2 years ago
If you want to make rotating sprites always have their direction to the right. Because to the right is angle 0 or 360
musicmanya 2 years ago
they um i have a lil question: to what direction does the stick figure has to rotate? right or left?
eldiejablo 2 years ago
gee thanks
Ryokon101 2 years ago
i dont know how you guys did this, i did the same as you, but my obect is going the other way, if i move my mouse to the left, my object is rotating to the right, when mouse goes to the right, object goes to left xD muhaha, anyway, i found a better tutorial, a easier one
postkip 2 years ago
where???????
problemtimmy 2 years ago
you made your sprite clockwise 361 spr and you need to make it counter
robbiertje123 2 years ago
HOLY!!!!Thats one of the best tutorials i have ever seen WOOT!
chocolate14850 2 years ago 6
thanks man
darkvaderfake 2 years ago
mines a platform game and when i move with the arrow keys it wont and it has to follow the cursor please help
freeFeild 2 years ago
yay
LOgANMaN1717 2 years ago
Thanks this really helped! But how do i make the bullets come out from the top of the gun?
piggekott98 2 years ago
change origin of where instance is created
TrueTechTalk 2 years ago
i already figured that out but thanks anyway :)
piggekott98 2 years ago
Hey could someone please tell me how to change the rate of fire? Cuz this is perfect and easy, but I don't want the bullets to spray. Someone help please, thanks.
AvocadoMatrix 2 years ago
Press - Release. (only 1 bullet in every press, no spraying while holding)
intaler 2 years ago
@intaler Hey umm, do i write that in a script thing or what?
AvocadoMatrix 2 years ago
Drag n' Drop, instead of regular Keyboard use the Press Key-event... if that doesn't work also put in a Release... I'm not very good with that stuff.
I think I just explained everything above î wrong so I'd suggest to try it, if it doesn't work, ask someone else...
ah well I tried now at least.
intaler 2 years ago
love Game Makers lol!!!!!!!!!!
dinudinu400 2 years ago
awsom but how do u make bad guys
thatrubberducky26 2 years ago
mine doesnt work
gerian201 2 years ago
ugh............ move?
PivotShowss1 2 years ago
Cool, but Im already using the step thing in my character for gravity. So it wont work. Any other ways?
Clayguy247 2 years ago
What about adding another script in the step event? lol...
intaler 2 years ago
@intaler I got it now
Clayguy247 2 years ago 3
Awesome.
intaler 2 years ago
can you show us how to make them move too?
i got problems.
and show us how to make them move and shoot at the same time thanks
PivotShowss1 2 years ago
thanks dude
do next vid about how to make enemy shoot a you
PivotShowss1 2 years ago
Thank you so much, has actually helped me in college... im doing games design (:
DannYxB09 2 years ago
I will credit you at the end of my game =D
DannYxB09 2 years ago
wow thats very awsome
lgshine09 2 years ago
it says error in
b=instance_create(x,y,bullet)
b.direction=direction
speed= 15
KHSoraLink 2 years ago
u need to name ur bullet "bullet"
men808 2 years ago
with ''
?
KHSoraLink 2 years ago
and is it a problem that ive got onl;y sprite right and left>?
KHSoraLink 2 years ago
not with "
depends of the name of instance, if you put "bullet" in code, you must put "bullet" name in object (" no needed)
Hiquenegrello 2 years ago
how do i make the rate of fire slower
bennybobz9 2 years ago
increasse the timing, alarm, dk
Hiquenegrello 2 years ago
nice music
Where did you get it ?
MrBoburin 2 years ago
Comment removed
MrBoburin 2 years ago
Nice Music n thanks it really helped me and now my game is AWSUM
scratchdat14 2 years ago
How did you make the player move at your mouse?
doomspire 2 years ago
can i make this for enemy??
sacufo 2 years ago
it works tnx
Whitey392 2 years ago
It even works with Game Maker 6.1.
FleshEater1995 2 years ago
i love you
dieselsinferno 2 years ago
my guy keaps following the mouse when he walks
MrTrianglz 2 years ago
how do i center sprites?
wargod700 2 years ago
sorry about the stream of comments my dunno what i was doing anyways i gotaa make it so i can move and jump coz this messes up my gravity on the game i also need the bullets to dissaper by them selves arfter a while and they have a puase time
awsemo100 2 years ago
or it makes my char fly about and leaves a never disaperring trail of bullets pls help
awsemo100 2 years ago
ok im making a platformer and using this it didnt work the bullet didnt go forwards it stayed still and well didnt work can u help me
awsemo100 2 years ago
Okay i figured that out know why is my guy slideing off the screen
SgtPalen 2 years ago
Comment removed
SgtPalen 2 years ago
how do you get him to move lk u did, lk walking
Goodbye9people 2 years ago
ey dude i have done all thing u do but when i join my game it say ERROR in
action number 1
of Mouse Event for Glob Left Button
for object Sprite10:
Error in code at line 1: b=instance_create(x,y,bullet)
at position 23: Unknown variable bullet .... i got VISTA on my computer
Simon87142 2 years ago
ty so much!!!!!!!! it workt! thx dude
WoWJoNNiE 2 years ago
I forgot to mention, if you want your bullets to be "semi auto" change global mouse to "left mouse click". as for quality goes idk what to say as my comp is nearly brand new
haydenap 2 years ago
awesome thanks. works fine
hayzson123 2 years ago
thanks man now my guy blows fire
3fkownzall 2 years ago
does any one know how to make the charactor go where the mouse clicks
shinockx 2 years ago
my guy just turns in circles how do i fix that
Imatraceur 2 years ago
same
DementedBoosh 2 years ago
I don't get it, Game Maker 7 (Free Version)
slows down severely when I make more than two levels >_>
Does this happen to anyone else, or on the Pro version?
MrMii100 2 years ago
Must be your computer.One of my games has 50+ levels and is running fine only a bit slower than normal.
joseph3112 2 years ago
It might be my computer, but I also think it might be Vista (Piece of crap) that I'm using.
Thank you for the help.
MrMii100 2 years ago
I also have Vista and I don't have any problems with it. (Also free version).
Try re-installing or something?
23cl 2 years ago
Oh God it is....it is and Windows 7 will be just as bad if not worse. If you really hate it that much, do what I did and dual run Vista and XP or Vista and Ubuntu, which I found was a better combination.
Geass300 2 years ago
BUY
A
NEW
PC
PeterBara95 2 years ago
I have a top performance PC, man. =\
I honestly think it's Vista.
And don't ask me what brand and crap this is, I'm honestly not sure, and I don't care anymore because I've figured out how to add more levels/etc. without any lag.
MrMii100 2 years ago
But i have Vista too, and i have no problems...
PeterBara95 2 years ago
Then I have no idea what caused the problem. =S
I just merge project files together now, each of which containing a level.
MrMii100 2 years ago
heres wat it said on mine
___________________________________________
FATAL ERROR in
action number 1
of Step Event
for object master chief:
COMPILATION ERROR in code action
Error in code at line 2: direction? = point_direction(x,y,mouse_x,mouse_y)
at position 11: Unexpected symbol.
razor4581 2 years ago
thanx
puneet256 2 years ago
Comment removed
CooBlu1 2 years ago
i want my character to move up down left and right with my key board how do you do that?
puneet256 2 years ago
that's easy, are you a beginner? Just curious, but first, make a player sprite, make an object, the object should be the player sprite, make keyboard events however you like and then there are moving directions actions and, well you'll find out
ItIshMehXD 2 years ago
how can i let him walk to??
mebethatthing 2 years ago
xDxDxDxD i dont know what i did wrong im not useing the pro ver and i tried it on one of my previous games and it flies around like a space ship whereever i click and it leave a small trail of the bullet i made xDxDxD
StickManMattz 2 years ago
Hi, put in vid description to put &fmt=18 at the end of the address on their address bar. It makes the video HD and makes in better quality.
MokoVideos 2 years ago
Can you plx link those Codes for me :/ I cant se What code you use...
eetu47 2 years ago
FlashBangGrenades 2 years ago
Thanks alot!
But also, how do you make it so it only shoots one bullet every couple of seconds?
(please respond!)
SNguyz 2 years ago
getting tired of re-posting this reply... but here I go again...
Sorry for the wait, my computer was broken for a while. Uhhh I was toying with it for a bit and all you need to do is: Instead of using the global mouse thing in the video, use global mouse left pressed! That should solve your problem, I think at least it worked for me ^_^
haydenap 2 years ago
Omg thank you so much, great tutorial! 5/5!
08Runescape80 2 years ago
thank you soooooooooooooooooooooooooooooooooooooooooooo much!!!!!
FOOD3126 3 years ago
Your very welcome
haydenap 3 years ago
Game maker 7 rocks
gummidude123 3 years ago
I think we all know that ^_^
haydenap 3 years ago
what do you need halp with? explain more celarly.
gummidude123 3 years ago
How can you make him move with WASD instead of the up arrow key? I tried just not using the whole thing in the step, but it won't work...
FlabbahJabbah 3 years ago
you don't use step you make your object "move fixed" when you press W,A,S or D
gummidude123 3 years ago
I think you just have to alter the code like where it says keyboard vk(up) or something like that duplicate it 4 time and make it the "WASD" keys instead but i'll have to look intoit, ive been busy lately
haydenap 3 years ago
all you have to do is hold down the up arrow key it moves towards your mouse...
haydenap 3 years ago
No Problem
haydenap 3 years ago
How that guy can shoot with pistol (Not with machine gun)?
CTomppaS 3 years ago
Sorry for the wait, my computer was broken for a while. Uhhh I was toying with it for a bit and all you need to do is: Instead of using the global mouse thing in the video, use global mouse left pressed! That should solve your problem, I think at least it worked for me ^_^
haydenap 3 years ago
how do you that the players walks to the mouse? pleas answer
mustyisiky 3 years ago
But your mouse somewhere and press up arrow.
CTomppaS 3 years ago
Yeah like CTomppaS said: Just put your mouse somewhere and press the up arrow button on your keyboard.
haydenap 3 years ago
Game Maker is fucking hard sometimes! Thank you for this. NowI'm trying to make a copy of GTA2! Just don't laugh people when you read this :D
peca94 3 years ago
You bet
haydenap 3 years ago
how do i change the time before u can shoot again (hes shooting so many bullets at a time)
Dead4Dark 3 years ago
Sorry for the wait, my computer was broken for a while. Uhhh I was toying with it for a bit and all you need to do is: Instead of using the global mouse thing in the video, use global mouse left pressed! That should solve your problem, I think at least it worked for me ^_^
haydenap 3 years ago
Can you make a video wit hhow to make enemys in it to shoot on and get a score?
kingquefaz 3 years ago
Not sure how to do that yet
haydenap 3 years ago
To: onemanarmy675 lol sorry I accidentally removed your comment oops... uhh you will have to be more specific in what you want me to do.
haydenap 3 years ago
Thanks for the comment and the 5*. You should check out my other vids too.
haydenap 3 years ago
thank you man I've been trying to learn how to do that.
i subscribe
rated 5/5
and send you a freind request
thanx a lot
supercarlos1234 3 years ago
Thanks, I'm glad to help you with pretty much anything that I know >.> well you should check out my other videos, they probably aren't as helpful as this one though. Btw please spread the word about me, thanks!
haydenap 3 years ago
impressive how do you know all these codes thou?
onemanarmy675 3 years ago
Let's just say I know a guy..... lol jk
Uhhh I look up a lot of codes on the Internet and see if I can get them to work, If I can I put it on YouTube.
haydenap 3 years ago
wow.. you rock dude.. IT WORKED!!! 5 stars!
SeeYaOnFlyff 3 years ago
Thank You
haydenap 3 years ago
@haydenap
Dude you're the greatest tutor
Isaacfury1 9 months ago