I teach you how to make horizontal moving platforms in Game Maker. Can be used for your player to travel on.
if place_free(x+hsp,y){x+=hsp} else {hsp=-hsp}
if place_meeting(x+hsp,y,obj_blackplayer){hsp = -hsp;}
if place_meeting(x,y-1,obj_blackplayer){obj_blackplayer.x+=hsp;}