Hi, thanks. I have some problems...
1)I use the event_impact (in the enemy action) and event_entity (in the energy_ball function), now, this works very good, but the event_entity searchs all entities include the player. I want that searchs all entities EXCLUDE the PLAYER.
2)Also i have a problem in this code:
Code:
function ENDME()
{
switch(event_type)
{
case EVENT_ENTITY:
my.alpha -= 20 * time;
effect(explo,50,my.x,normal);
wait (1);
effect(explo_smoke,40,my.x,normal);
ent_playsound (you, explosion, 300); // sword sound
ent_remove (me);
case EVENT_BLOCK:
my.alpha -= 20 * time;
effect(explo,50,my.x,normal);
wait (1);
effect(explo_smoke,40,my.x,normal);
ent_playsound (you, explosion, 300); // sword sound
ent_remove (me);
}
}
Put me a error in this: Invalid parameters ":"
Help me. bye