Quote:

Maybe you´ve forgotten a semicolon. Post your 49th, 50th and 51th line of code, then we´ll see what´s wrong.




I don't think thats it it tells me the problem is in <my.event_entity = on;>
but heres what I put, I also change the frame names like Thunder told me, I made them, spikeup1, spikeup2, spikeup3.

Quote:

function load_lev_2()
{
freeze_mode = 1;
load_level("level2.wmb");
wait(3);
freeze_mode = 0;
}

function lev_2_event()
{
if(event_type == event_impact || event_type == event_entity)
{
if(you == player)
{
load_lev_2();
}
}
}

action spike_1
{
my.skill1 = 0; //used as animation counter
my.enable_impact = on;
my.event_entity = on;
my.event = lev_2_event;
while(me)
{
my.skill1 += 5 * time;
my.skill1 %= 100;
ent_animate(me,"spikeup",my.skill1,anm_cycle);
wait(1);
}
}




Last edited by tek; 08/15/06 23:04.