sHornoadIdle 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 //Init timeline_index = timelineHornoad; timeline_position = 0; timeline_running = true; timeline_loop = false; phy_rotation = 0; phy_fixed_rotation = true; image_speed = 0.1; jumpRight = 0; jumpLeft = 0; turnRight = 0; turnLeft = 0; jumpTime = 0; turnState = 0; lastimg = 0; hornoadBlink = 0; jumpRightFast = 0; 1 603 7 0 0 -1 2 self 0 0 1 ///Hornoad movement //Hopping Right if(jumpRight == 1 && sprite_index == sHornoadJump && floor(image_index) == 3) { physics_apply_local_impulse(0, 10, 15, -50); physics_apply_torque(0); jumpRight = 0; } if(jumpRightFast == 1 && sprite_index == sHornoadJump && floor(image_index) == 3) { physics_apply_local_impulse(0, 10, 14, -45); physics_apply_torque(0); jumpRightFast = 0; } //Hopping Left if(jumpLeft == 1 && sprite_index == sHornoadJump && floor(image_index) == 3) { physics_apply_local_impulse(0, 10, -15, -50); physics_apply_torque(0); jumpLeft = 0; } 1 603 7 0 0 -1 2 self 0 0 1 ///Hornoad animations //Change to idle when landing if(sprite_index == sHornoadJump && image_index >= 5 && place_meeting(x, y+1, oEndingSolid)) { PlaySoundMono(sndHornoadLand); sprite_index = sHornoadIdle; image_index = 0; image_speed = 0.1; } //Turning left if(turnLeft == 1) { image_speed = 0.12; sprite_index = sHornoadTurnNew; image_index = 0; turnLeft = 0; } //Turning left end if(sprite_index == sHornoadTurnNew && image_index >= 2 && turnState == 0) { sprite_index = sHornoadIdle; image_index = 0; image_xscale = -1; image_speed = 0.1; } //Turning right if(turnRight == 1) { image_speed = 0.12; sprite_index = sHornoadTurnNew; image_index = 0; image_xscale = -1; turnRight = 0; turnState = 1; } //Turning right end if(sprite_index == sHornoadTurnNew && image_index >= 2 && turnState == 1) { sprite_index = sHornoadIdle; image_index = 0; image_xscale = 1; image_speed = 0.1; turnState = 0; } if(jumpTime >= 0.999999999) { sprite_index = sHornoadJump; image_index = 0; image_speed = 0.2; jumpTime = 0; } if(hornoadBlink == 1 && sprite_index = sHornoadIdle && image_index >= 5) { sprite_index = sHornoadShake; image_index = 0; image_speed = 0.2; hornoadBlink = 0; } if(sprite_index == sHornoadDeath && image_index > 3) { image_speed = 1/2; } if(sprite_index == sHornoadDeath && image_index > 19) { image_speed = 0; } 1 603 7 0 0 -1 2 self 0 0 1 //Freeze jump sprite on last frame if(sprite_index == sHornoadJump) { image_index = 6; image_speed = 0; } if(sprite_index = sHornoadShake) { image_speed = 0.1; sprite_index = sHornoadIdle; image_index = 0; } -1 0 1 0.5 0 1 0.100000001490116 0.100000001490116 0.5 -1 0 0,0 23,0 23,21 0,21