You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
905 B
47 lines
905 B
if attack
|
|
{
|
|
if (offset < 24)
|
|
offset += 2
|
|
}
|
|
else if (offset > 0)
|
|
offset -= 1
|
|
image_index = floor((offset / 4.8))
|
|
switch floor(image_index)
|
|
{
|
|
case 0:
|
|
len = 11
|
|
dir = 24
|
|
break
|
|
case 1:
|
|
len = 13
|
|
dir = 10
|
|
break
|
|
case 2:
|
|
len = 16
|
|
dir = 24
|
|
break
|
|
case 3:
|
|
case 4:
|
|
len = 18
|
|
dir = 36
|
|
break
|
|
}
|
|
|
|
disc1.x = (x + lengthdir_x(len, (image_angle + dir)))
|
|
disc1.y = (y + lengthdir_y(len, (image_angle + dir)))
|
|
disc2.x = (x + lengthdir_x(len, (image_angle - dir)))
|
|
disc2.y = (y + lengthdir_y(len, (image_angle - dir)))
|
|
x = (startx + lengthdir_x(offset, image_angle))
|
|
y = (starty + lengthdir_y(offset, image_angle))
|
|
if (state == 100)
|
|
{
|
|
with (disc1)
|
|
instance_destroy()
|
|
with (disc2)
|
|
instance_destroy()
|
|
with (lure)
|
|
state = 100
|
|
enemy_death()
|
|
}
|
|
event_inherited()
|