Hiya, I'm making a space combat game that will have vortices as transitions between levels... can anyone suggest a good way to make the player's ship get "sucked in" (preferably in a spiral movement) as they come within a certain range?
Currently I've got:
System: distance(PlayerShip.X,PlayerShip.Y,Vortex.X,Vortex.Y)<1600
Move PlayerShip 20-(int(distance(PlayerShip.X,PlayerShip.Y,Vortex.X,Vortex.Y)/80)) pixels at angle(PlayerShip.X,PlayerShip.Y,Vortex.X,Vortex.Y)
Thing is, this just pulls the player directly toward the vortex. Is there a good way to make it happen in more of a spiral fashion? Geometry's not my strong point