Several 2D games allows players to jump. While aireborne, attacking can be designed in a few ways:
1. While airborne and pressing "attack", hsp=0; vsp=0; and the attack animation/hitbox happens. (ignore physics and attack)
2. While airbone and pressing "attack", player continues to move upward...
Okay
So another member of this forum helped me with my problem a day or two ago. I feel his instructions were helpful but i did something wrong. Im trying to get my character to play through his attack animation once at the press of the space bar. However, every time i press the space bar, he...
Marketplace link: https://marketplace.yoyogames.com/assets/6108/attacking-with-knockback
Are you making an action rpg? Need knockback? Then this is for you. Attacking and knockback. In the video below you can see it in action. Unfortunately I'm not good at animating so it maybe doesn't look so...
I'm pretty new to GMS2 and I'm not even sure if I'm posting this in the right place but I'm having some trouble with the attacking animations for my game. I've set it up so that you press space to attack but the full animation only works if you press space at the exact same time as when you...
///scr_move_state
scr_get_input();
//Movement
phy_rotation = -point_direction(x,y,mouse_x,mouse_y)
global.rotation = phy_rotation
var xaxis = (right_key - left_key);
var yaxis = (down_key - up_key);
// Get direction
var dir = point_direction(0, 0, xaxis, yaxis);
// Get the length
if(xaxis ==...
Im currently having trouble getting my character to attack while he is moving.
1. I can get him to move and attack separately
2. I can get him to start the attack animation and move while the animation is going
but I CANT get him to start the attack animation while mid movement, and after I...
So ive recently started using game maker studios and have been watching a few tutorials. I have been able to make my player power up and kill enemies by jumping on them but his sword swing attack doesn't work. Any help would be greatly appreciated. Here is the code ( and the code in /// is just...
So I decided against actually making my character's attacks a series of just 1 then 2 then 3 in favor of just having a few different slashing animations that all are done with the 'A' key, in addition to a stabing attack, and a hammer drop kinda animation.
The spear and hammer are fine, trouble...