Code:

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);
}
}



Oh you should change the names of your animations though.
Remove the space between the frame name and the number.
like:
spikeup1
or spikeup01