Day 66

Today I worked on the death animation of my Goblin enemy.

I added a new state and called is scr_enemy_death() and inside I added:

enemyspeed = 0;
sprite_index = spr_goblin_death;

if image_index = 9
{
    image_speed = 0;
    alarm[2] = 60;
}

This code changes the current sprite of the enemy to the death sprite. But when he changes it just freezes for some reason and I can't figure out why. 

Next class I will try to figure this out.

No comments:

Post a Comment