H
HanNic3197
Guest
Hello! I'm very new to Gamemaker and programming so I need any help I can get ^.^
I have a ball that I want to wrap around horizontally when it starts to go off screen. I have it so that when the ball intersects the boundary with a margin of 0.001 it wraps to opposite side of the screen with the same hspeed. The right side works correctly, but if the ball is coming from the left it disappears, then reappears 200 pixels from the right boundary.
Video here:
http://tinypic.com/r/29dzl03/9
Code:
I have a ball that I want to wrap around horizontally when it starts to go off screen. I have it so that when the ball intersects the boundary with a margin of 0.001 it wraps to opposite side of the screen with the same hspeed. The right side works correctly, but if the ball is coming from the left it disappears, then reappears 200 pixels from the right boundary.
Video here:
http://tinypic.com/r/29dzl03/9
Code: