• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

damage

  1. D

    GameMaker: programming a twin-stick-shooter! Enemies

    Ive done a twin-stick-shooter vs zombies. my only problem is, that i only get damage if i hit the zombies, not if they hit me... I
  2. B

    GameMaker How to make collision masks and deal melee damage?

    Sorry if this sounds like a really stupid question i haven't been using GMS2 for very long but i can't find a tutorial for this anywhere since most of them use ranged attacks. So basically i want the damage system to be completely in the enemy's favour, where the player does about 1 dmg and the...
  3. A

    GameMaker [SOLVED] Burn Damage

    I've been searching google and the forums to no avail. I'm trying to make an on burn effect that only lasts 3-5 seconds. I have used alarms, if statements, case statements, for loops, but have only managed to get the effect to run once or constantly without stopping. I might be going slightly...
  4. T

    Health and Damage

    I'm not sure how exactly yo do it, I've watched tutorials but they don't seem to help, I've tried setting health -1 relative to the amount of health given (3) but it kills the player and the enemy , which is set to destroy on contact with the player. I've also tried creating an object that moves...
  5. F

    GameMaker damage done

    solved
  6. S

    Damage collision not working properly

    Hello, Im making a kinda basic side scrolling platformer, where you can also attack enemies and stuff. But I have a weird problem, this is my code (see image) for attacking. Basically whenever I press attack key, it creates an object next to my character which dissapears after few moments, the...
  7. M

    Swapping Weapons and changing their damage

    So I have a system to swap weapons and it works, the problem I have is that I can't seem to change the amount of damage they do. They all deal the same amount. weapon swap code: var new_weapon = argument0; var temp = weapon_sprite; weapon_sprite = new_weapon.sprite_index; new_weapon.sprite_index...
  8. M

    If you want Spawner, health regen, damage counter...

    Hey budies! If you want to know the codes for a npc spawner or a health regen or damage counter (show the random damage you done) I could share it with you.
  9. JDizzle383

    GameMaker Percentile Damage System[Help!]

    So I am not asking for help making the collisions register certain damage. I know how to do that to DECREASE a health bar, so it should be just inverting the damage done to INCREASE % damage, right? I have watched Drag and Drop tutorials on how to make an enemy fly farther based on how many hits...
  10. C

    Legacy GM [SOLVED] How to make fall damage in my platformer?

    Hey guys, So I tried to make fall damage in my platformer. The animation part of it works but I don't take any damage.. Here's the code I used: if (vsp > 11) sprite_index = spr_alien_fall; if (place_meeting(x,y+2,obj_wall) && (vsp > 11)) global.life -= 1; I already have all the variables...
  11. E

    getting value sform nearest instance/changing nearest instances values

    this is the code in a game im working on. why is it broken? //weapons calculations instance_nearest(x,y,action).HP += -1.5*(Weapon/action.Armour) Hit = random(100) if Hit = 1 then instance_nearest(x,y,action).Nav += -0.1*(Weapon/action.Armour) if Hit > 10 then...
  12. V

    Legacy GM Quick problem with HP

    So I'm setting up the damage and destruction functions for the enemies in my game, starting with the all powerful metal box. I want to kill this box. And I can kill the box. But that's the problem. if(place_meeting(x,y,parent_hitbox)) { hp -= parent_hitbox.damage; } if(hp <= 0) {...
  13. M

    My character receives damage when he attacks.

    I've watched a lot of youtube tutorials about damaging enemies. Almost all of them use melee, but mine uses some sort of "spell". When I press the attack button (right click) my character starts a 1 sec animation, when it ends, it spawns a sword in front of him that should deal the damage, but...
  14. T

    Help on the Damage Variable

    I started making this arcade game, and I wanted to make a health pickup, in where it would decrease the damage by 25. However, I cannot prevent the player from hoarding health, ultimately making the game too easy. I wanted to put a cap on the health, but I can't get it to work. Can you help out?
Top