how do i get an object to change its angular direction once it reaches a specific point on screen.
(example)
i have an object that starts off moving at a 45 degree angle; when it reaches the right side of the screen, i want it to change its angle and move to the opposite side of the screen (kind of a zig-zag type motion down the screen)
(solutions i have tried)
1. i tried assigning the object 8 direction movement and using the "reverse" direction = nothing
2. i've tried comparing the X position on screen and set a new angle approach = nada again...it simply reaches the X position and moves down the screen in a straight line
3. i've even tried destroying the object once it reaches the desired X position and spawning a new 1 in the exact location and assigning a new desired angle = ziltch
any suggestions?