Master Cabalist
Member
Hi
Checked the manual and its not clear on this. I have a WindBatObject and a BOSSesParent. My question basically is, the following piece of code:
I don't understand how with(other) functions. What I want to do is animate the BOSSesParent object. I was going to have a BOSS
on collision it is supposed to do a "bite" animation by the BOSS and then to stop after a few seconds then start again, etc.
Until the BOSS is done or the attacking character dies.
-TW
Checked the manual and its not clear on this. I have a WindBatObject and a BOSSesParent. My question basically is, the following piece of code:
GML:
with(other) //event is BOSSESParent. other is WindBatStill
{
hp_minus = irandom_range(200, 400)
hp -= hp_minus
floater = instance_create_depth(x+10, y-10, -1700, DamageIndicatorObject);
floater.text = string(hp_minus);
if (hp <= 0)
{
audio_play_sound(DieingBrainSound, 5, false)
}
}
on collision it is supposed to do a "bite" animation by the BOSS and then to stop after a few seconds then start again, etc.
Until the BOSS is done or the attacking character dies.
-TW