S
Stratos.la
Guest
so i have an obj_ball which the plaer throws if i use it without the animation the ball goes smootly and nice (even though i still cant make it spawn from the second frame x,y of the attack animation) but when i add the animation the ball just endlesly keep flowing out of my character as if he is peeing! forgive me really but it seems like that! sorry again!
and when i press "z" then i can catch a single frame of the attack animation happening but still the image is all messed up with a vast and rich amount of flooding balls!
GMS2 here!
Code:
//attack
if (key_attack!=0) sprite_index = spr_player_attack; else sprite_index = spr_player_idle;
with (instance_create_layer(x,y-20,"ball",obj_ball))
{
speed = 13
gravity = 0.5
image_angle = direction
direction = obj_player1.image_angle + random_range(-1,1)
}
GMS2 here!