drag & drop

  1. R

    Draggable object GM2

    Hi team, I am just practicing some code and wanted to create a drag and drop, basic object that you left click on with the mouse and you can drag it. I create a sprite with origin in the middle and it is associated to a object (object0) with this step event...
  2. C

    How do you make a reload system in your game (Drag and drop)?

    Hi, I was trying to figure out how I can make my gun have a reload system in my game for drag and drop. Any answers would be appreciated. P.S ik that dnd is for noobs but could please help me out anyways
  3. Y

    Drag And Drop different objets set draw color

    hi guys another noob question,(in fact I am ashamed to ask). I was making a simple game where I have a score and at the end of the game the score is displayed as "your score" in the middle of the screen. I want it to have a different color than the rest of the text (different objects),but when...
  4. M

    Help with activating an in game conversation? (DnD)

    I'm just getting started with using Gamemaker studio 2, and have mostly worked with the sprite editor because that's the easiest to learn. I've more or less figured out how to make a text box, but I can't figure out how to activate a conversation with a npc. I've attached a picture of my work in...
  5. NoConnection_

    Drag And Drop More damage points for more enemies colliting

    Okay, so what i'm trying to do is when an enemy approaches the wall he starts doing damage to it, but afterwards if more enemies approach the wall and start hitting it too the wall will start loosing hitpoints faster. The problem here is: I don't know how to implement that feature into my game...
  6. 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...
  7. Sarena

    GMS 2 [SOLVED] Bullet Object Only Destroyed Sometimes

    I created a character that uses a gun weapon, and whenever you right-click, it shoots a bullet projectile towards the position that you clicked in. I created it in a similar fashion to how I made the player move to a spot you click by left-clicking. The system almost works completely how I want...
  8. W

    Advanced Enemy AI

    Hello! I am kind of new to coding/the drag and drop system, and I was wondering if it was possible to make an enemy AI that traveled around walls, and followed the player? Currently I am using GameMaker 8.1, (and the drag and drop move towards object)
  9. 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...
  10. Sarena

    GMS 2 [SOLVED] Weapons won't swap when key pressed

    I'm creating a weapon swapping system where if you press a key, it switches which weapon you can actively use. Right now I just have a sword and a gun. In my objPlayer's create event, I start the player with the sword weapon: // Weapon Variable // 1 = Sword // 2 = Gun // Assign Variable weapon...
  11. C

    D&D wall collision player stuck

    hey everyone, I'm looking for an answer around the fact that I'm having trouble keeping my character from getting stuck on a wall when making contact with it using the drag and drop function with game maker. when i encounter the top of a wall I'm unable to move left or right and when i encounter...
  12. Sarena

    GMS 2 [SOLVED] Health Bar not showing correct HP

    I set up a health bar to go along with my player's hp (which is 4), but for some reason the health bar image itself is acting as if my player only has 3 hp. I attached an image to showcase the issue. Here is my objGUI's Create Event: // Set Global Variable global.playerhp = 4; And the Draw...
  13. Sarena

    GMS 2 [SOLVED] How to animate a weapon when attacking?

    I managed to get my sword weapon to work correctly in regards to function, but whenever I attack, it only shows the first frame of my animation instead of playing through all 8 frames. Here is the code I have in regards to the sword in my objPlayer's Step Event: // Sword Attack // If...
  14. Sarena

    GMS 2 [SOLVED] Stuck to Ground when Jumping in Platformer

    I'm creating a Platformer game and I've been having some collision issues when it comes to jumping. Whenever my character jumps and lands on a raised platform, they get stuck to it. The same happens if they start on a raised piece of ground and they jump or fall to the ground below. When they...
  15. JeanSwamp

    Drag And Drop Tips for a newcomer to GMS2

    Hello! My name is Ivan and this is my first post here! I'm a videogame enthusiast but with not much idea of programming nor artwork, but I can manage myself to do a little bit of both thanks to drag and drop engines. My first and only engine has been Construct 2, which I learnt for a few...
  16. C

    Re: Sprite help

    My Question was not answered so i made another thread(tell me if i did anything wrong) Hello, I am a young noob developer(i don't know coding that much), and i am making a platformer game. I followed the help of the kind Shaun Spalding in this video in order to make platformer physics which...
  17. Q

    GMS 2 how to create character customization

    hey does anyone know how to create a character customization menu in gamemaker 2? i use the drag and drop system. would it be easier just to use gamemaker 1? i want it to be like you click an arrow and it cycles through skin colors, clothes, ect. thanks a lot :^)
  18. reallifeed

    GMS 2 Paths and Path Following Using Drag and Drop

    GM Version: GMS 2 Target Platform: ALL Download: N/A Links: N/A Summary: Object path and path following using drag and drop methods. Tutorial:
  19. kraifpatrik

    Question - IDE Custom DnD lib

    Hey everyone, just wanted to ask, if it is possible to make your own DnD library for GameMaker Studio 2 and then share it with others in some convenient way. Thanks, Patrik
  20. M

    How to take an object with the mouse and drop it

    Hi , i'm not a coder , and i don't know how to take an object with the mouse , move it and drop it after . If u don't understand , i want to create a chessboard and idk how to move the piece with the mouse only . I tried with the up/down/left/right , but i cant move only one piece , because they...
Top