For my weapon code system, I'm using the following style of code to draw the melee weapon (based on the weapon sprite), continue drawing it in a brief swinging sequence, and then it is destroyed:
draw_sprite_pos(sprite, subimg, x1, y1, x2, y2, x3, y3, x4, y4, alpha)
It looks clean when the character is standing still, but when jumping the weapon stays in the spot where the attack button was pressed and the character keeps going. Using this style of code, what can I plug in so it doesn't look like the character is arbitrarily summoning sword swings in the air? (haha)
thanks for your time!
draw_sprite_pos(sprite, subimg, x1, y1, x2, y2, x3, y3, x4, y4, alpha)
It looks clean when the character is standing still, but when jumping the weapon stays in the spot where the attack button was pressed and the character keeps going. Using this style of code, what can I plug in so it doesn't look like the character is arbitrarily summoning sword swings in the air? (haha)
thanks for your time!