How To Make A Classic Arcade Game in GameMaker - jadeusgames.com

How To Make A Classic Arcade Game in GameMaker

GameMaker
Views: 181112
Like: 2774
Learn how to make a classic arcade game in GameMaker in this 15 minute tutorial. Then check out the other videos in the series to expand and improve your game.

Download GameMaker:
Article:

Tutorial series:
1. Base game:
2. Main Menu:
3. Music and SFX:
4. Power Ups:

75 Comments

  1. Going step by step on the web read tutorial or the video, the logic shown for visual code just doesn't want to work at all. It's pretty damn irritating.

  2. srry my ship isnt moving at all how do i fix it

  3. Matharoo, you make good tutorials, your editing and style makes it easy to follow.

  4. on the 11:12 part, my instance_copy(true) is not working, it says "GM2022 – Return value of a pure function is not being used", and i'm following the steps of the tutorial

  5. Something dont work idk what but it didnt start😢

  6. How do you set the smaller rock sprites to equal different point values?

  7. uh… i got some issue in shooting part. It doesn't shoot

  8. why do all my bullets destroy when only one hits it

  9. the asteroid rotation doesn't work for me, after setting a random number for image_angle in Create event. Do you know why?

  10. Pretty good tutorial. The double sided visuals for both of the coding styles is impressive. I coded something and actually understand some of what I've done! The only thing I don't understand is why my points won't go up. I've checked the code many times and just can't figure it out.

  11. he literally named his project "ship go brrrr"

  12. hey im trying to replicate the game in code language, but i have no clue how i change the vk_up to be the "w" key.. help

  13. E tu e br ou não eu vi um video teu etu farava br 🤔🤔

  14. I've themed my player object as a pirate ship that shoots cannonballs out of the sides of the ship rather than the front, but I'm struggling to figure out a few issues!

    1) I've created two instances of the cannonball, and I've got them going sideways instead of forwards, but both are going to the right instead of one going left.
    – My method for this which sadly isn't working was to create some sort of alternator with while loops. I've got a "var i = 0", then "while i = 0" : "i +1", "direction = obj_player.image_angle+90", "speed = 10", and a second while loop of "while i = 1" : "i -1", "direction = …angle+270", "speed = 10". Probably obvious to someone out there, but I'm not sure which part of this I've understood incorrectly!

    2) I needed to offset the creation of the cannonball instances. I've had to set the origin of the player ship to the back of the sprite so that it feels like a ship when it turns (like a rudder on a ship and not like a spaceship). Also the cannons are visually towards the front of the ship, at the other end than the origin. It's clear from firing the cannons with the player object at different angles that the offset I've given it is global, and not offset in relation to the player object's angle.
    – My method for offsetting (which again sadly isn't working) was having "if mouse pressed" : then I have two Create Instances, where one is "x = 48 relative, y = -27 relative" and the other is "x = 48 relative, y = 27 relative". Like I said, this seems to be moving the location of the instances' creation on a global axis basis, and not relative to the player object's angle. I'm not sure how to accomplish what I'm trying to do.

    Thank you if anyone can offer advice!

    Edit: through trial and error of trying a few things, I've solved issue 1: I added a global variable "i" to obj_game within a "room start" event, and gave i the value of 1. then within the cannonball create event, I have "if global.i = 0" -> "add 1 to global.i" (and the speed and direction vars) then "else" -> "add -1 to global.i" (and the speed and direction vars as I previously described). This is working great, and both cannonballs now fire off in opposite directions!
    However, the solution to issue 2 is still evading me.

  15. Can someone please help me? I followed the tutorial and generally have no problems, but I can't see the first effect that appears when I start the game whether it is the destruction of a rock or the destruction of my ship. I could not figure out why…😢

  16. idk why but when i type the same exsact code it just don't work

  17. Seems I'm the only one having this issue. My particles don't appear until the second time they're called, and whenever they do, it's some glitchy rainbow texture.

  18. good video but I got a problem with the bullets with the valuable obj_player that reads me like invalid and need help with that

  19. Who is this guy? I need to subscribe on his channel because he's a good teacher.

  20. so i copied your code.. and the first time i shoot a rock there's no effects, The first time i run into a rock no effects either.

  21. My small rocks are spawning on top of each other I've followed video and looked at the page and cant figure out why

  22. why is it necessary to turn on relatives in instance?

  23. Nice tutorial, would definitely recommend including shortcuts alongside gui as it speeds up your life 350% more

  24. How is this working for everyone else in like 6 minutes to fire the bullets because my bullets just make a big line instead of me being able to actually fir them with a left click

  25. What do I do if the template doesn't show up when starting a new project? Where do I download it? Never mind, I found it

  26. please make a video with name how to scrool an item please

  27. como puedo ponerle el HighScore?

  28. can someone help me with my bullet colison code

    obj_game.points += 50;
    instance_destroy(other);
    effect_create_above(ef_explosion,x,y,1, c_white);

    direction = random(360);

    if sprite_index == spr_rock_big
    {
    sprite_index = spr_rock_small;
    instance_copy(true);
    }
    else if instance_number(obj_rock) <12
    {
    sprite_index = spr_rock_big;
    x = -100;
    }
    else
    {
    instance_destroy();
    }

    I would love to learn how to debugg this!

  29. I lost the main function bar on the right, how to return it

  30. _________________________________________

    ############################################################################################

    ERROR in

    action number 1

    of Step Eventobj_bullet

    for object obj_bigrock:

    Variable obj_bigrock.spite_index(100007, -2147483648) not set before reading it.

    at gml_Object_obj_bigrock_Collision_obj_bullet (line 27) – if(spite_index == spr_rock_big)

    ############################################################################################

    gml_Object_obj_bigrock_Collision_obj_bullet (line 27)

  31. I got a visual problem. My ship leaves behind a trail of copies of itself when moving.

  32. I messed around with different software and made game with each of them but I think this is the one I'm going with, you guys have really done something incredible with visual code.

  33. When i try to run my game it just turns into pitch black. How do i fix this?

  34. That had INSANLY good directions! Thank you soo much for making this video, as it'll help me make other games in GameMaker Studio!

  35. 11:31 I had to put instance_number(Obj_rock_big). when i put instance_number(obj_rock) game would crash.

  36. is there a way to give the big rock and the small rock different point values? probably not right because they are the same event?

  37. why does my charcter slide like its on ice

  38. The shooting part didn't work, what do I do?

  39. Great Tutorial, but I'm running into one problem in the "Destroying Rocks" section. I hit the rock and it explodes. But the explosion animation doesn't play on the FIRST HIT, it does play perfectly on all subsequent hits. I've checked my code thoroughly and tried it in GML Visual and GML Script with the same results (I'm on MAC OS if that matters). Am I doing something wrong or is this a bug in the actual program? EDIT: Just downloaded a completed version of the game code (created by someone else) and it also does not do the explosion animation on the first hit (but it works on all the hits after that). Very strange.

  40. um when i put instance_copy(true); its says return value of pure function is not being used. what does this mean?

  41. Every time I try to shoot a bullet it doesn’t work pls help

  42. awesome tutorial! very easy to follow.
    But some practices in this tutorial don't feel right for much larger projects with hundreds/thousands of sprites.
    Does gamemaker have a tutorial for managing that kind of projects?

  43. Thanks for this tutorial but I met a problem.

    the score remains at zero. and after destroying several asteroids, the game bugs and an error page asks me to clean or abort. I have reread and checked your instructions several times and have not made any incorrect entries. Game Maker Video 2 told my error came from this line "event – points = 0; For the software we should use a variable (var or move)
    can you help me?

  44. Yupiee. I made a game ehehe 🙂 Thanks … for real

Leave a Reply

Your email address will not be published.