if(hit.crush)
physic.set_velocity(0, 0);
- if(hit.bottom && !on_ground) {
+ if(hit.bottom && !on_ground && !grabbed) {
sound_manager->play(ROCK_SOUND, get_pos());
on_ground = true;
}
movement = pos - get_pos();
last_movement = movement;
set_group(COLGROUP_TOUCHABLE);
- on_ground = true;
+ on_ground = false;
grabbed = true;
}