here's the explanation (at least how i understood it):
frame to change the facing direction of the object
DC-Code:
<frame> 0 cbeam
pic: 999 state: 3005 wait: 0 next: 1 hit_Fa: 3
<frame_end>
|
frame to tell it: "if there are no opponents (hit_Fa: 1), go to frame 399" (you need the hit_a: 1 for hit_d: to activate).
DC-Code:
<frame> 1 cbeam
pic: 999 state: 3005 wait: 1 next: 2 hit_Fa: 1 hit_a: 1 hit_d: 399
<frame_end>
|
state: 400 to teleport to opponent (remember we are already facing the "correct" direction)
DC-Code:
<frame> 2 cbeam
pic: 999 state: 400
... #go_on_to_attack_frames
|
delete the object in the case that it detected no opponents
DC-Code:
<frame> 399 cbeam
pic: 999 state: 3005 wait: 0 next: 1000
<frame_end>
|
haven't tested it myself, but that's how i think it works
Azriel~