(Player with Obstacle):

// GameMaker Collision event with obj_obstacle: instance_destroy(); // or restart room show_debug_message("Crashed!");

Apply the behavior, but disable "Default controls" to manually control the constant forward speed.