weapon

  1. 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...
  2. 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...
  3. S

    Legacy GM Need help figuring out how to make something work.

    At the moment, I'm making a little test game--a super basic side scroller-- just to learn the basics of coding. I have a room, a player character (obj_player) that can walk left and right, a chest that I can "open" (really just made it so that when I press a button the animation changes makes it...
  4. L

    Question - GML Visual Help with weapon

    I'm using D&D I've been trying to figure out how to make a sword for my player, I've watched all the YouTube videos and I just can't seem to figure it out. I've created the sprite created the animation (it is a separate object from my player) but how exactly would I get the sword into the game...
  5. L

    Help!!!!

    I'm using Gamemaker studio 2 and I have the full version. I'm using D&D I've been watching countless tutorials on youtube and trying to figure out how to create a sword for my player. I actually have the sprite made and the animations are finished the sword is a separate object from the player...
  6. L

    Legacy GM Weapon switching with 4 sprites

    I'm creating an action RPG game with weapon switching. And I'm wondering how to quickly and effectively create a way for each weapon to match each direction the characters facing once there switched. For example if I switch from a hand gun to an SMG I want it to carry over for all 4 sprites...
  7. J

    Legacy GM Making a scroll box to scroll through a menu

    I have googled many things on how to do this but just haven't found anything yet, so I was wondering if I missed something or of there is a way to do this. I want to make a scroll box with a list of many weapons. I would also like each with a picture drawn next to it (I'm sure I could figure...
  8. E

    Changing, droping, and swaping weapons

    I really don't know how to swap weapons or even change weapons that would be good because if i write code like this for changing weapons: if Weapon > 3 { Weapon++ } else { Weapon = 0 } It will change weapons even if they are not picked up. I would really like to have 3(4) weapons: weapon 0...
  9. A

    best way to integrate weapons/magic attacks

    im fairly new to this so any input is appreciated, is there any advantage to have the attack sprites include the character and weapon, or for you to use a different sprite/object for the weapon?
Top