Added: 3 years ago
From: haydenap
Views: 24,348
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (161)

Sign In or Sign Up now to post a comment!
  • i can't put a video in my game it give me this error

  • 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) ...

  • Thanks

  • It all worked out good. Exept my charecter did not follow the mouse.

  • i cant read the part where you put that move towards in the create event for the bullet

  • 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?

  • how can i make the movement wasd instead of arrow key up toward the mouse?

  • hey help i dont see bullet only blue screen tryed :(

  • Very Nice

  • @kingsong2010 maybe is your bullet object not called bullet and you must fill in the name of your bullet object

  • for single shot , just change global mouse left click to global mouse left pressed

  • mine dnt wrk it only moves :(

  • 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 same with me

  • @billyakaeaster you werent supposed to copy the: this part goes under "step"

  • i shot and bullet stay on right place

  • thx man finally i got it right thanks a million

  • i have a tip go to the create on bullet and make code "image_index = direction" so the bullet follow the direction :D

  • thanks! my tank game is beast now!

  • okay problem. my character keeps spinning, and he isn't following the mouse... some one help?

  • 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.

  • 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 i can make a tut

  • @codydalla i can make a tut

    then i will send the link

  • 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.

  • thnx man!

    You helped alot and i hope you'll make some more cool tutorial like this! :)

  • 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

  • what does it mean when the codes turn red

  • the easier way make rotation is with no 361 frames make a end step event and put image_angle = direction

  • Comment removed

  • how to make a enemies

  • "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!

  • 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!--

  • 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!

  • there is a much easier way (without scrpiting)!!!!!

  • mine aint working, when i point to certain points, my bullets get created away from my guy. =(

  • 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,mo­use_y)

    bullet.speed = 14

    And anyways you can request game maker tutorials from me and also watch my platform game tutorial:D

  • Eh, complocated... :(

    Can sombody please tell me how to install ingame tutorials?

    Cuz I downloaded then I just dont know how to install them

  • 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.)

  • 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

  • very easy works just fine but i dint use gm7 but i used gm8

  • It's dosen't working to me.

    And I use a Game Maker 7 Pro

  • Where I can Download

    Game Maker 7

  • @gipsybreak

    You can download game maker8 FREE At Filesfree.yolasite.com

  • yes, but what i want to know is how to make something ROTATE TOWARDSyour mouse.

  • i love game maker, check out my vids. im rating this as the best

  • 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 i tried your newest video and i got some erorrs, this video by far is way better, Thanks

  • @haydenap when i use this to shoot i cant move when i add the basic movements whats up with that?

  • 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

  • lol you should continue making this game and upload it on yoyogames . (com)

  • srry but i dont see the code

    can you send me them!

    please

    (its a nice video i lurn very much)

  • go to the vid discription and press MORE INFO , then you will see the 2 scripts

  • how do i put achviements in a game?

  • 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!!!

  • thanks man this tutorial is sweet!

  • If you want to make rotating sprites always have their direction to the right. Because to the right is angle 0 or 360

  • they um i have a lil question: to what direction does the stick figure has to rotate? right or left?

  • gee thanks

  • 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

  • where???????

  • you made your sprite clockwise 361 spr and you need to make it counter

  • HOLY!!!!Thats one of the best tutorials i have ever seen WOOT!

  • thanks man

  • mines a platform game and when i move with the arrow keys it wont and it has to follow the cursor please help

  • yay

  • Thanks this really helped! But how do i make the bullets come out from the top of the gun?

  • change origin of where instance is created

  • i already figured that out but thanks anyway :)

  • 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.

  • Press - Release. (only 1 bullet in every press, no spraying while holding)

  • @intaler Hey umm, do i write that in a script thing or what?

  • 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.

  • love Game Makers lol!!!!!!!!!!

  • awsom but how do u make bad guys

  • mine doesnt work

  • ugh............ move?

  • Cool, but Im already using the step thing in my character for gravity. So it wont work. Any other ways?

  • What about adding another script in the step event? lol...

  • @intaler I got it now

  • Awesome.

  • 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

  • thanks dude

    do next vid about how to make enemy shoot a you

  • Thank you so much, has actually helped me in college... im doing games design (:

  • I will credit you at the end of my game =D

  • wow thats very awsome

  • it says error in

    b=instance_create(x,y,bullet)

    b.direction=direction

    speed= 15

  • u need to name ur bullet "bullet"

  • with ''

    ?

  • and is it a problem that ive got onl;y sprite right and left>?

  • not with "

    depends of the name of instance, if you put "bullet" in code, you must put "bullet" name in object (" no needed)

  • how do i make the rate of fire slower

  • increasse the timing, alarm, dk

  • nice music

    Where did you get it ?

  • Comment removed

  • Nice Music n thanks it really helped me and now my game is AWSUM

  • How did you make the player move at your mouse?

  • can i make this for enemy??

  • it works tnx

  • It even works with Game Maker 6.1.

  • i love you

  • my guy keaps following the mouse when he walks

  • how do i center sprites?

  • 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

  • or it makes my char fly about and leaves a never disaperring trail of bullets pls help

  • 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

  • Okay i figured that out know why is my guy slideing off the screen

  • Comment removed

  • how do you get him to move lk u did, lk walking

  • 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

  • ty so much!!!!!!!! it workt! thx dude

  • 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

  • awesome thanks. works fine

  • thanks man now my guy blows fire

  • does any one know how to make the charactor go where the mouse clicks

  • my guy just turns in circles how do i fix that

  • same

  • 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?

  • Must be your computer.One of my games has 50+ levels and is running fine only a bit slower than normal.

  • 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.

  • I also have Vista and I don't have any problems with it. (Also free version).

    Try re-installing or something?

  • 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.

  • BUY

    A

    NEW

    PC

  • 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.

  • But i have Vista too, and i have no problems...

  • Then I have no idea what caused the problem. =S

    I just merge project files together now, each of which containing a level.

  • 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,mo­use_y)

    at position 11: Unexpected symbol.

  • thanx

  • Comment removed

  • i want my character to move up down left and right with my key board how do you do that?

  • 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

  • how can i let him walk to??

  • 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

  • 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.

  • Can you plx link those Codes for me :/ I cant se What code you use...

  • 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,mo­use_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
  • Thanks alot!

    But also, how do you make it so it only shoots one bullet every couple of seconds?

    (please respond!)

  • 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 ^_^

  • Omg thank you so much, great tutorial! 5/5!

  • thank you sooooooooooooooooooooooooooooo­ooooooooooooooo much!!!!!

  • Your very welcome

  • Game maker 7 rocks

  • I think we all know that ^_^

  • what do you need halp with? explain more celarly.

  • 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...

  • you don't use step you make your object "move fixed" when you press W,A,S or D

  • 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

  • all you have to do is hold down the up arrow key it moves towards your mouse...

  • No Problem

  • How that guy can shoot with pistol (Not with machine gun)?

  • 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 ^_^

  • how do you that the players walks to the mouse? pleas answer

  • But your mouse somewhere and press up arrow.

  • Yeah like CTomppaS said: Just put your mouse somewhere and press the up arrow button on your keyboard.

  • 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

  • You bet

  • how do i change the time before u can shoot again (hes shooting so many bullets at a time)

  • 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 ^_^

  • Can you make a video wit hhow to make enemys in it to shoot on and get a score?

  • Not sure how to do that yet

  • 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.

  • Thanks for the comment and the 5*. You should check out my other vids too.

  • 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

  • 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!

  • impressive how do you know all these codes thou?

  • 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.

  • wow.. you rock dude.. IT WORKED!!! 5 stars!

  • Thank You

  • @haydenap

    Dude you're the greatest tutor

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...