shooting

  1. Roastedzerg

    SOLVED Giving the illusion of shooting down while flying in isometric 2d

    Hey guys, I'm having trouble trying to rack my brain on this. Basically im creating an isometric 2d top down game and am working on giving the illusion of flight by raising the sprite of the flying objects above their real location but subtracting sprite_height from their Y to bring them up and...
  2. Loxeni

    Help please! Issues with getting my player to shoot in the correct direction using 'image_xscale'

    Hello everyone, It's my first time making a game in game maker, so I am starting simple and using Drag and Drop. I'm creating a zombie game, where the zombies follow the player and the player can shoot them. I have my player moving around and the sprite 'flipping' based on direction using...
  3. Atbit

    What can I do with sequences?

    1) Is it possible to mirror and rotate sequence animation like in the case of sprites? Like when it's turning 180, the bullet cases flew to the right, not to the left; 2) Is it possible to randomize xy coordinates to prevent the cases from falling to one point? P.S. I don't know why, but...
  4. Obj_Neil

    Create a burst fire gun or enemy spawner

    GM Version: Gamemaker 2 Target Platform: ALL Download: N/A Links: N/A Summary: A way to code a burst fire gun/torrent, which can also be used to spawn enemies. You can control how many bullets to shoot, how fast to shoot them, and how long to wait between shooting. Tutorial: If you want...
  5. C

    GML How to fix gun flying away my player

    Hi, I'm creating a simple platform shooting game I almost made all the important things But I got a problem where the enemy's gun just flew away while firing at me Here is my code /// @description Insert description here // You can write your code in this editor dir = point_direction(x, y...
  6. C

    GML How to make all enemies shoot

    ANSWERED Hi just created a simple platformer game, I've made my Player with Gun and 5Enemies with Gun, BUT the problem is one enemy only is shooting and it shoots 5 bullets in one fire, so one enemy shoot all the bullets that the other enemies should shoot, all enemies gun is aiming at my...
  7. qbot21

    GMS 2 [SOLVED] Spawning four instances at once

    Hello!!! I came across a problem that when I fire a gun, four instances of a bullet are created at once (each on top of other). I really don't have idea what causing this problem :/ I have a parent o_player obj, which have three childs. Each child inherits whole step event from the parent. At...
  8. P

    GMS 2 Knockback Direction Broken?

    I'm trying to knock back my player in the opposite direction he shoots his gun. But it only seems to be working on vertical directions... PLAYER CREATE EVENT hspd = 0; vspd = 0; hspd_force = 0; vspd_force = 0; force_applied = 0; force_dir = undefined; spd = 2; PLAYER STEP EVENT // Inputs var...
  9. X

    Help needed with projectile's place of origin.

    Hello! I am a beginner and not a native English speaker so please have patience with me. I have a minor problem that is probably easily fixed with knowledge so after few hours of listening to New Order and trying to figure this out myself I thought I should just ask you guys. The game is in...
  10. Arikitaru

    [SOLVED] Cursor/Camera/Object anchor offset issue

    Hello! I'm having a weird issue with a camera/shooting feature of my game. Whenever I'm trying to shoot, the bullets are leaving from the right spot (turret), but not towards my cursor - the game thinks that the turret is about 200px higher. If I rotate my cursor around that marked spot...
  11. P

    Team Request Looking for coder and/or UX/UI desinger. (SPACE SHOOTING MMO)

    Before i even start, i want to make clear, this is not a paid job. Payment will come as soon as the game make some cash. I'm looking coder with basic understanding of gms 2, coding and networking. you dont need to have years of experience and the same goes with UX/UI desinger. (not a paid job...
  12. X

    Help needed with projectile movement! [Solved]

    I am a beginner and a dumb one. Now I use the same post as before but I change the title etc. I have managed to make shooting work now. But the problem I have is that when going left, the projectiles go to left only when the button is pressed. So what am I doing wrong here? CODE: //Shooting...
  13. KPJ

    GMS 2 enemy move toward player (GMS2)

    Hi everyone! I need help. I want the enemy to move toward the player if the player shoots within a certain range. At first, all my code was working and the enemy moved toward the player but then all of a sudden it stopped working and the enemy didn't move. //if player shoots with (oEnemy) {...
  14. Y

    Umm idont have idea where to ask (HELP)

    i am game maker 1 user creating platform 2d game this is code to gun follow character and should be point on character but it spawns in wall obj x = spr_character.x y = spr_character.y+10 image_angle = point_direction(x,y,mouse_x,mouse_y) firingdelay = firingdelay - 1 if...
  15. JeanSwamp

    GML Shooting State Help

    Hello, I'm currently changing how my shooting works. Before, pressing the shoot key made you join a shooting state where HSP would be 0, locking you in to shoot, kinda like Ghost n Ghouls did back in the days, until the animation finishes and you're back to idle or run state. I decided to give...
  16. T

    GML What is the best way to model recoil climb in in my platformer?

    Alright, I'm in the very very early stages of working on a platformer with mouse aim. It uses the standard kind of system where a separate arm object rotates around the player's shoulder with an image angle that follows the cursor. For a handful of design reasons, I really don't want to use an...
  17. L

    Legacy GM Alarms don't work properly

    So I was making a side-scroll shooter from Shaun Spalding's tutorials , I used an alarm[0] for automatic shooting when holding spacebar,it works but I wanted to implement a powerup that makes you shoot bullets like a cone for 15 seconds then return back to normal shooting, I used an alarm for...
  18. T

    How know if a Wall is between 2 objects

    Hello , i need help : I have a enemy who go on my player object why his pathfinding and when he is at range he stop and shot arrow, My problem is i need to know how know if the place between the ennemy and the player is free of Wall . Actualy is a Wall is between the enemy and the player...
  19. C

    GMS 2 Need help with having player shoot out of gun instead of out of center of player sprite.(SOLVED)

    Hello! I'm new to GameMaker 2 and have undertaken working on a top down shooter. I've figured out how to get the player to shoot but I cant seem to get how to get the bullets to come out of the gun instead of the middle of the sprite.(the gun is part of the sprite, not a separate object) And...
  20. C

    All the enemies die when I kill one in the room. Pls help

    When I kill one of the enemies, all the enemies in the room die. How do I make the one I'm shooting die and not the others? Pls Help
Top