M
MagicFool64
Guest
I'm trying to make a chain lighting attack, by making the "bullet" jumping to the next target (max 3), but I think I'm making in the bad way.
Here is the script in the bullet
Every time the bullet hits an enemy, it loses a life. With a Drag'n'Drop script I added that the bullet gets destroyed after it loses the life
The script doesn't work, I don't know that to do. Can you help me?
Here is the script in the bullet
Code:
//Create
target = ds_list_create();
ds_list_add(bersagli, "obj_enemy");
ds_list_add(bersagli, "obj_enemy");
ds_list_add(bersagli, "obj_enemy");
Life = 3
//Destroy
ds_list_destroy(target)
//Step
move_towards_point( obj_enemy, obj_enemy, 20 );
//Collission with Enemy
Life = -1
x = obj_enemy;
y = obj_enemy;
The script doesn't work, I don't know that to do. Can you help me?