Added: 3 years ago
From: 177Ronaldo717
Views: 5,828
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (95)

Sign In or Sign Up now to post a comment!
  • OK OK but i want the CLIP AND ALLAMMO to be draw it at view.xview/view.yview ( ok i did that but not countdown ore reload

  • fuck you and yor tutorial u cant see shit put the codes in the fucking description turd, we cant copy and paste the video typing.

  • @codgod66 No, but you can fucking write them yourself by just looking at the screen, fucking retard..

  • can you copy paste codes?

  • what windows have u got

  • Is it possible to make it unable to shoot while reloading

  • @Canechy Figured it out yet? xD

  • all of it worked but one thing, my ammo bar isnt depeleting, plz help. every thing is up and ill scroll through the video again

  • big bullet

  • Can you put the codes in the description?

  • i fire and bullets stay underneath me.. ammo count does not go down either no errors though please help?

  • it says

    ERROR in

    action number 1

    of Draw Event

    for object spr_player:

    Error in code at line 3: (clip)+'/'+string( allammo)); ^

    at position 21: Unknown variable allammo

    whats wrong?

  • @HydraAgent117 you didn't set the variable 'clip' at your creation event.

  • it looks like most ppl tthink this is............SPAR-oh wait no its...ITS....AN EPIC FAIL VID

  • i like pie i like pie i like pie i would want to die i like pie i like pie i am gonna cry i like pie i like pie if i dont get i like pie i like pie a slice of pie i like pie i like pie i would want to die i like pie i like pie i am gonna cry

  • Thanks this is a simple but effective ammo/reload/hud solution for my game! I had to change the location of some of the code though, because the ammo display would draw on the same layer as the player, thus in my game the ammo count would disappear behind a wall or a crate at times :)

  • @Druterium If your ammo count is behind other instances you need to set its depth to a high negative number.

  • yer i tryed again being carfull and i just got this and i dont know how to fix it plz help:

    ______________________________­_____________

    FATAL ERROR in

    action number 1

    of Mouse Event for Glob Left Button

    for object obj_player:

    COMPILATION ERROR in code action

    Error in code at line 4: { ^

    at position 2: Symbol ) expected.

    i just found out how to fix it no problem

  • yer i tryed again being carfull and i just got this and i dont know how to fix it plz help:

    ______________________________­_____________

    FATAL ERROR in

    action number 1

    of Mouse Event for Glob Left Button

    for object obj_player:

    COMPILATION ERROR in code action

    Error in code at line 4: { ^

    at position 2: Symbol ) expected.

  • hey can you put the codes in the description so we can see them cause its hard to see if theres a space or not, this may not be the case for some but it is for me!

    please help!

  • OMFG it worked :D, thank you soo much, imma subscribe and give you credit :)

  • uuuhm, is there any way to cause a delay for reloding, like 1 second or so...so its more realistic.

  • whenever i put the person in, the ammo hud didn't show up and when i left clicked, he just turned into a bullet ???????? please help me soon

  • shooting didnt work for me the ammo appeared but just got stuck where my char was

  • @anydmx0 same here

  • Comment removed

  • tanks for you tutorial

  • DUDE IT WORKED! YES! OMG THANK YOU!

  • would sprite 0 be they player sprite and object one be the player object or waht

  • here is my code for draw

    draw_sprite(spr_player,0,x,y);

    draw_text(x+32,y+0,string

    (clip)+'/'+string(allammo));

    is that right

    and and i wont display my ammo going down plus i dont need 2 reload

  • You know what... You could've put the code in the discription! That would be much easier to get the code!

  • FATAL EROR in

    action number 1

    of alarm event for alarm 1

    from object0

    COMPILATION ERROR in code action

    error in code at line 7

    }

    at position 2: unexpected symbol in expression

  • my game start but ever 30/120 where is the error?

  • @diablo3pk sameeeeee

  • OMG!!, finally, something that works!!!

    EVERYONE: CHECK THE SPELLING OF THE NAMES (OBJECTS AND VAR'S), I MADE THE TRY WHIT MY VAR'S AND OBJECTS AND IT WORKED!!!!!

    THANXS ALOT!!

  • @mariutoo yesh i will do theat

  • lmao!!!!! hows that bad??? unlimited ammo? sounds pretty good to me

  • why is the bullet not moving

  • why is the bullet not moving

  • i maid it good but the bullet wont move...

  • @ijay909 maybe cause u didn't eh nvm idk lol my bullet moves

  • couldnt you have put it in the info bar!?!?

    because this makes me so mad, ive tried to fix this code for 2 hours!

    it gives no errores, but the ammo NEVER GOES DOWN!

    please help@

  • wath's the error

  • @bluebowser31 same i well tell u if i figure it out my old man has got a phd in code so i am all set

  • ive got game maker 8 lite, and i copied the exact code and all, but it has problems with the { and } between the lines. Is it possible that those are ( and )?

    PLZ help nice vid 5/5

  • It works, but the ammount of bullets doesent reduce. And everytime i shoot there comes two bullet the other one works but the other one stays in ground and doesent move to any directions

  • nice!

  • Dude I'm making a zombie game right now and this code works perfectly. Thanks for your help!

  • dude Im makeing a zombie game too is yours also Birds eye veiw

  • ERROR in

    action number 1

    of Mouse Event for Glob Left Pressed

    for object obj_man:

    Error in code at line 1: if (can_shoot==1) ^

    at position 5: Unknown variable can_shoot

  • HELP!!! What do I do?

    ERROR in

    action number 1

    of Draw Event

    for object obj_Player:

    Error in code at line 1: draw_sprite(sprite0,0,x,y);

    at position 13: Unknown variable sprite0

  • Comment removed

  • @brutaka359 Where it says sprite0, replace that with the name of your player sprite!

  • YAH!

  • super yay!

  • oh and ty PKSebesMirciu for that cause my bullet didn't move when it was created

    and i followed exactly the instructions

    and 177Ronaldo717 plz make an tutorial on multiplayer games and how to find IPs(Internet Providers)

  • in main1 theres a create moving so in direction just put in mouse_x and mouse_y

  • any way to limit bullets?

  • don't type the top words or rest of line which usually is like part something and rest of name of event

  • you forget to write

    iii.speed=10;

  • try doing better next time you suck

  • Comment removed

  • FATAL ERROR in

    action number 1

    of Mouse Event for Glob Left Button

    for object Player:

    COMPILATION ERROR in code action

    Error in code at line 15: }

    at position 2: Symbol } expected.

  • if that happens: just go back to the code and on the 15th line:

    the second character should be }

  • add a }

  • :S MANY CODES

  • error on line 1 for obj_player:draw

    to many aguments?

  • it says error dude why did you keep saying lets skip a bit now you just made me lost

  • why did you keep saying skip now i dunno wat to do

  • didnt work BUT this did help alot, i made my first shooter and so far its pretty sexy (: and now i know how to do dealthbars/ammo view and stuff

  • healthbars*

  • hey i got this error:

    ERROR in

    action number 1

    of Draw Event

    for object obj_player:

    Error in code at line 3: (clip)+' / '+string(allammo));

    at position 3: Unknown variable clip

  • what's in your create event?

  • obj_player is the name of your Character, and for the next error try this: (clip)+' / '+string(allammo);

  • @ZinodinhoProductions

    me to i got an error

    ERROR in

    action number 1

    of Mouse Event for Glob Left Button

    for object obj_player:

    Error in code at line 3: if (clip>0) ^

    at position 7: Unknown variable clip

  • hm... this tutorial was kinda strange..

    didn't work...

  • which part didn't work? shooting, reloading, showing the ammo?

  • shooting, reloading and the ammo reducing.

  • @177Ronaldo717 it woulldn't display the ammo going down or reloadingm, in fact i never needed to reload

  • @177Ronaldo717 i have unlimited ammo and don't need to reload and doens't show ammo adding or subtracting in anyway i dont get it

  • @177Ronaldo717 shooting works but the ammo is not going down and i cant see my charitor

  • whats the name of the song?

  • Forever By: Chris Brown

  • @177Ronaldo717 uhhhh can you put the code in desc?

  • i did this so you can pick up 3 different types of gun and they all have ammo count and reload :)

  • nice, congratulations. :D

  • can you do this to work and not use the mouse to shoot just space bar and then shoot in the direction the player faces?

  • no I don't think that's possible without all the different objects =(

  • yes i know i worked it out last night. You have to make a different object for each side the player moves and then use the weapon on each object. This helps me try to make a GTA for my city.

  • thanks!!!

    5 starsss

  • ______________________________­_____________

    FATAL ERROR in

    action number 1

    of Mouse Event for Glob Left Pressed

    for object obj_player:

    COMPILATION ERROR in code action

    Error in code at line 5: ¡¡¡=instance_create(x,y,obj_bu­llet);

    at position 2: Unexpected symbol.

    WHY?

  • ok heres whats wrong, it's meant to be...

    iii=instance_create(x,y,obj_pl­ayer);

    but you did obj_bullet, should work =\

  • thanks!!!

    but now only it apears this :

    ______________________________­_____________

    FATAL ERROR in

    action number 1

    of Mouse Event for Glob Left Pressed

    for object obj_player:

    COMPILATION ERROR in code action

    Error in code at line 7: iii.direction=point_direction(­x,y,mouse_x,mouse_y)

    at position 51: Symbol } expected.

  • this is the whole code if (can_shoot==1) { if(clip>0) } iii=instance_create(x,y,obj_pl­ayer); iii=direction=point_direction(­x,y,mouse_x,mouse_y) { else } alarm[1]=30; } }
  • the reloading thing doesnt work but the shooting does this tut helped alot

  • Put this code in obj_player key Press 'r' event.

    alarm[1]=30;

  • nah im not gona do reloading

  • then why did you watch this vid?

  • VERY VERY GOOD!!!!!

  • Thats better!

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...
    • Clear all videos from this list
    • Learn more