By the way I tried a few enemies but they were all a bit quirky in their movement. I set them to ball movement (using the same four lines of code for wrapping) and followed them with the main character to see what they did. At the wrap point sometimes they would disappear then reappear... couldn't work out what was going on... so I gave up...
I remember doing this by having the enemies not scroll with the background, and move in the direction opposite the player when the player moves.
keyboard: repeat while 'right'
--Player: set X to X(Player)+1
--Enemy: set X to X(Enemy)-1
That was an arcade-style game though (a Fantasy World clone), and would probably foul up if you needed enemy background collisions, unless you had half the playfield replicated in each direction around the playfield rather than half a screedwidth. But the advantage is you're taking advantage of one of MMFs object positioning modes rather than manually repositioning dozens of objects when you wrap.