R
Riley
Guest
Hello, I'm new to Game Maker and I'm trying to figure out how to create an attack.
I have it set so that when the F key is pressed there is a new instance of the attack object. But when this happens there are two attack objects that are formed. One is in the correct place and goes through the entire animation. The second is only frame 1 of attack object's animation and is lower than the other attack object. The attack object is called oScream. My code is
if(key_attack){
with(instance_create_layer(x,y,"Scream",oScream)
{
}
}
Any help would be amazing
I have it set so that when the F key is pressed there is a new instance of the attack object. But when this happens there are two attack objects that are formed. One is in the correct place and goes through the entire animation. The second is only frame 1 of attack object's animation and is lower than the other attack object. The attack object is called oScream. My code is
if(key_attack){
with(instance_create_layer(x,y,"Scream",oScream)
{
}
}
Any help would be amazing