What I do is set two borders one left_border & right_border
Give the player a bullet behaviour OR a platform your choice both work the same...
Player on collision with right_border simulate control pressing left set player_image mirrored
Player on collision with left_border simulate control pressing right set player_image not mirrored
(this would be for platform)
for bullet just set angel of motion instead