var _k = collision_kind_at(x, bbox_bottom + 1); // "ladder", "solid", "" ...
if (array_contains(collision_kinds_touching(), "water")) swim = true;
collision_layer_set_mask("Collision_enemies", collision_layer_bit("enemies"));
collision_kind_at(x, y, [mask]) gives the kind at a point (polygon shapes first, then the collision layers; a slope only where its shape is). collision_kinds_touching([inst], [mask]) lists the kinds an instance's shape overlaps or touches. Bodies collide with a collision layer when their collision_mask has one of the layer's bits (set in the room inspector).
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.