Z
zendraw
Guest
so i have this kind of issue, i have a parent object o_e and a child one o_soldier which shoots fireballs and i adress the solider in a user event in the parent object
the codeblock is specified to the child object o_soldier
and this is the situation, when there iso nly 1 instance of o_solider, he shoots as expected, by skipping 1 time.
but when there are 2 or more instances of o_soldier, he shoots every time.
by time i mean i have an alarm event and when that alarm event is triggered athe user event is triggerd, of the parent object.
the variable act is switched only at the parent event shown above.
the codeblock is specified to the child object o_soldier
Code:
if (act==1)
{
scr_at_2(sprite_index-mask_index);
}
act=-act;
but when there are 2 or more instances of o_soldier, he shoots every time.
by time i mean i have an alarm event and when that alarm event is triggered athe user event is triggerd, of the parent object.
the variable act is switched only at the parent event shown above.