Need help with the sine function! enemy keeps regenerating after it exits screen

I added the sine function to an enemy just like it says in the How To's but after it exits the screen it regenerates at the other end and it doesnt exactly leave the screen, it warps right when it touches edge. =\ I need help with this problem.
Comments