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!
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...
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...
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...
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...
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...
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.
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...
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...
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...
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)
{...
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...
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?