I need a ballsprite to move to the x value of another ballsprite when It reaches a certain Y value, but it teleports to the x. Is there a way I can make it smoothly move to the x?
Thanks in advance.
Here is a method using direction and speed ...
B1(x1.y1) and B2(x2,y2), when B2 reaches some value of y-axis, you just need to move B2 to (x1,y2), isn't it? y value of B2 would be same.
:
: ------- B1(2,7)
:
: -------<••••••••B2(5,4)
:
:________________