physic.set_velocity_y(0);
physic.enable_gravity(true);
on_ground = false;
+ sprite->set_animation_loops( 0 );
//Check if we need another sprite
if( !lisp.get( "sprite", sprite_name ) ){
}
//Replace sprite
sprite = sprite_manager->create( sprite_name );
-
+ sprite->set_animation_loops( 0 );
}
void
player->physic.set_velocity_y( vy );
//printf("nachher velocity y = %f\n", player->physic.get_velocity_y());
sound_manager->play( TRAMPOLINE_SOUND );
+ sprite->set_animation_loops( -1 ); //TODO: 2 is not working
return SOLID;
}
}
movement = pos - get_pos();
set_group( COLGROUP_DISABLED );
on_ground = true;
+ sprite->set_animation_loops( 0 );
}
void