weapon

  1. R

    SOLVED problems in creating obj

    Hi guys, I'm asking for help to understand and solve a problem that shouldn't happen. Well, getting straight to the point: I'm doing a power up that destroys the player's current weapon and creates a new one (give him a new weapon to make it clearer what I mean), but this is where my problem...
  2. R

    SOLVED [SORTED OUT]adjustment in the boom codes

    hello guys, i'll ask for another help here. I'm doing a mechanic for my player, he has a spear and uses it to attack, doing lunge attack and throwing the spear and then it goes back to his hand. Well, the whole code works, it's almost perfect, but it has a small problem: when the boom comes...
  3. N

    GMS 2.3+ Vertical Gunkick and Jumping

    Hi, I made a short video to explain my problem a bit better: As you can see in the video the player jumps a bit when shooting down after being in the air for a bit and then shooting downwards the player doesn't really move much. However when the player jumps and then shoots downwards directly...
  4. TayTrash

    Windows Help with weapons on my game Dungeon Crawler

    Hi guys, I was here programming a Dungeon Crawler style game and I'm having some doubts about how to do certain functions for my weapons in the game. So far I only have the pistol and a machine gun, my player when he gets to any of the weapons, he takes it and can shoot, then he reaches the...
  5. A

    How do I change sprite animations after picking up a weapon?

    Hello everyone, I have imported a sprite sheet featuring my character running with a weapon. I was hoping to use this animation after the player picks up the weapon object. However, I'm unsure about how to insert the animation into the code. I know it has to take the form of an if statement...
  6. ColinTheGamer

    Need Help With Coding Weapon Movement With Player

    Hello, I'm currently having and issue with my weapon not following me properly. It follows me as I move and fires correctly, but there's a delay when it follows me that makes it look like it's floating in front of me rather than being held by me. The code I used is very simple, I'll post it...
  7. A

    GML How do I attach my weapon to my character if the model is 3D in a 2D space?

    Hello everyone, I recently replaced the 2D sprite of the gun I was using with a 3D model of a gun and ran into some problems. The 3D model was rendered from one side so that it could mimic a 2D object. Previously the 2D gun sprite was at least close to the character, but now it's pretty far...
  8. H

    GMS 2 Problem With Array list of weapons

    Hi, i have a problem with my weapons arrays. When i want to shot, my weapon ammo change from 5 to 4 and back to 5, then i can't shot anymore, when i change my weapon to a Bow, reload (auto reload) cant be completed and start over an over. When i reload, my ammo is subtraction from EQ but Weapon...
  9. Wicked

    GML Help with changing weapons

    So basically, the code at the top of both spoilers is supposed to have it so when I pick up one weapon, the other is dropped to the floor. However, it only works if I have the gun and try to pick up the axe, if I have the axe and try to pick up the gun it just moves the gun. Axe Code Gun code...
  10. PlayerOne

    GMS 2 An odd result... possible bug? [SOLVED]

    I don't know what to make of this. I'm trying to implement a weapon switching system. The problem comes when I switch weapons and I have seem to have pinpointed the issue to instance_create_depth. What should happen is that when I pick up a new weapon the previous one gets dropped with the...
  11. Architheutis

    Simple Weapon-Aiming and Shots

    Hi Folks, I`m an interested beginner in programming and using GMS2. I´ve already seen different YT-Tutorials, f.e. making a Jump`N`Run game. I can follow all codes and steps. But I hang up on a simple weapon behaviour. Maybe there is somebody can gimme a hint!? I have a fully functional...
  12. nick4508

    Job Offer - Artist (HIRING) Looking for artist to create a few weapon images

    Hey guys! Looking for a 2D artist to create 11 weapon sprites. Each roughly 400x400 pixels, however they are not animated, and only still images. The style of the weapons are realistic and I can provide reference images to work off. To get an idea, check out Craftpix as I am using assets from...
  13. M

    Bullet shooting problem

    Already excuse me mistakes because I'm French ;) .. My problem is that I would like to leave the bullet the end of the barrel of my weapon, but I can not position the bullet instancier with "instance_create_layer" (The bullet is positioned originally sprite and I do not want that :bash:), help...
  14. Qaletaqa Thorson

    GMS 2 Weapons are not working

    this is the error i get when i pick up any weapon _________________________________________ ############################################################################################ FATAL ERROR in action number 1 of Step Event0 for object oPowerup: lengthdir_x argument 1 incorrect type...
  15. Sarena

    GMS 2 [SOLVED] Ranged Weapon Character Sprite Not Changing

    I created a system where you can switch between two different characters, one that has a ranged weapon and one that uses melee attacks. The animations for the melee character are showing correctly, but the ranged character animations are not. The ranged character is using a weapon like a...
  16. O

    GMS 2 Bullets affecting multiple enemies

    Hi guys, so I'm currently working on a top/down zombie shooter and I've stumbled upon a problem. I have a shotgun which shoots 3 bullets, the problem is that let's say two of those bullets collide with 2 enemies it only affects one enemy, so basically until I kill the first enemy that was...
  17. Sarena

    GMS 2 Sword is only visible sometimes

    I created a sword weapon, where I have one sprite that is used for the full body animation movement and one that is used while the player is not attacking, where it is simply dragged along. For some reason, the resting sword sprite is present most of the time, but when I trigger the sword...
  18. 6

    3D Have a problem with 3d draws and camera

    Hello I have a problem : I make a fps in 3 dimensions and I made the camera and a weapon I placed in front of this camera. But I want : when I move the camera in a specific direction I want the weapon to follow the movement of the camera and turn with it. For exemple : When I move the camera to...
  19. TheOnlyWRT

    Weapon Drop/Pickup not working

    So i am trying to code in my game the ability to pickup weapons when the enemy dies and drops their weapon. It worked great, and still does, but then i tried to add the ability of be able to drop your weapon whenever, and also drop your current weapon when you pickup a new one. And now whatever...
  20. B

    Legacy GM [SOLVED] Weapon's barrel face the moving enemy

    Hey guys,in game maker i've created a weapon and an enemy objecct and i want the weapon to face the moving enemy,so basically i want the weapon's barrel to face the enemy. I have tried it with this code: if(instance_nearest(x, y, obj_enemy)) { image_angle = point_direction(x, y...
Top