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!
How could I make my knockback smoother? I did it using lerp and lengthdir, but the transition was a bit abrupt. How could I fix this?
or is there a better way to do KnockBack?
collision event (Obj_shoot -> Obj_enemy)
if (other.hp > 0) {
var knockback_speed = 10;
var...
for (var i = 0; i < hits; i++)
{
var hitID = hitByAttackNow[| i];
if(ds_list_find_index(hitByAttack, hitID) == -1)
ds_list_add(hitByAttack, hitID);
with(hitID)
{
hp -= 10;
var dir =...
Hi, everyone!
I'm currently working on a top-down game and I have moving enemies that follow paths.
I wanted to make so that the player can be damaged only if it's in front of the enemies when a collision occurs. If the player walks against the enemies on a side, he stops but takes no damage as...
So, in my game, the boss charges at the player really quickly, and when he hits him, he (the player) should get knockback.
But i don't know how to implement the knockback function: I guess i need to get the angle from which the boss is coming and push the player
in the opposite direction... but...
This is my first project, so I'm having a bad time trying to figure out how to do it. My knockback wasn't working somedays ago, and the community helped me, so it's working now. But I want to make a knockback just like the one in megaman, because I think it's really dynamic. This is the code I'm...
I'm trying to program a knockback for when the caracther is hit by an enemy, but it's olny half working.
if (place_meeting(x+sign(move_speed), y, Obj_Slug)) {
x-=move_speed*15;
}
if (place_meeting(x-sign(move_speed), y, Obj_Slug)) {
x+=move_speed*15;
}
if (place_meeting(x...
I am creating a top down, but the player and enemies sprites only face left and right in a cartoonish way. I am trying to create knockback and have tried many different ways, it seems as though it should be simple and I believe it is, I just can't figure it out. This one code here stumps me, I...
am making a knockback system and am stuck at returning the knocked player direction to his original direction here is the code:
//Knockback
knockback = max(knockback-3.4,0);
if knockback = 0{
knockbackon = 0;
}
if knockback > 0{
knockbackon = 1;
}
if knockbackon = 1{
direction =...
so am creating a topdown 2v2 game and i found my self stuck on the dmage system.
right now i have diffrent controls for the same hero and all 4 players play the same hero so its the same object.
the player can knockback multiple other players but the player that got hit cant be targeted by...
Trying to make a mechanic similar to Ori and the blind forest where the character can hold right click and after a certain amount of time be reflected/knockbacked to the same direction the mouse is facing. I got the timer to work but it shoots my character vertically. Looking for it to shoot...
im having issues with knockback for a top down game. im trying to get some knockback on my character for when he is shooting, but i cant get this working because my character rotates towards the mouse. i was thinking about using lengthdir but i don't understand how to implement this, anyone got...
Hello
I was working on my knockback effects in this game I am just getting the player mechanics done before adding any thing else. But I ran into a problem.
The entire script will be below and the link video to give a visual to what my problem is.
Now if you look at the video it looks as if...
Hello! This is my first post on this forum. I haven't done any programming in a long time so I'm very rusty, not that I was a professional before or anything. My code is very messy and disorganized but the game operates pretty well so far. But I've just been having trouble trying to get any sort...
I made sure I typed down everything from this tutorial video.
I added the enemy knockback code, and it works just as I expected.
But when I added on the player character (and made sure to copy the code from the video), all I get is this tiny message:
It didn't crash the game, but it...
Hi there!
I am new on Gamemaker Studio 2 and been following Shaun Spalding's youtube videos as I wanted to make my first platformer game. My obj_Player moving system looks pretty much like his:
var move = key_right - key_left;
hsp = move * walkspeed;
vsp = vsp + grv;
x = x + hsp;
y = y + vsp...
Lately I have been having issues with implementing a knockback code for a particular type enemy that carries a shield and can only be attacked from behind. When performing an attack on the enemy's shield the player is suppose to be slightly pushed back from the strike. However, when implementing...
I'm playing around trying to learn I've searched and read around, but i'm not saying i didn't miss something super simple that would fix this so first things first thank you for your time!!
So i have a player object and 2 enemy objects(same object just drug into room twice). What i want to...
So the knockback when an enemy touches the player doesn't work very well and nearly kills the player instantly since the player's health is only five. Here is my knockback code:
obj_player.hspeed_ = random_range(-14,14)
obj_player.y += -4
so for this I was going to add invincibility...
I was making a combat system for a action rpg game, but I noticed that it doesn't feel very good. How would I make it feel better? Should I use physics? Knockback or not? (Currently I'm not using physics and have a simple knockback).
I wasn't sure if I should post this in the programming thread...
Hi guys, so I don't really understand what is going on here. Basically, im trying to add a knockback to my zombie enemy but it's not working. I've basically created 2 script states. Zombie_Movement and Zombie_KnockBack
when the bullet hits the enemy the state changes to Zombie_Knockback, I then...