I'm trying to figure out how to pull the player character object towards a spawned from mouse click object.
Easiest way to visual - Spiderman fires his web at a building, he should be able to swing towards the impact point on the building itself.
every tick: move at angle: angle(player.x,player.y,dest.x,dest.y), distance = somespeed * dt
Develop games in your browser. Powerful, performant & highly capable.
You rock, thanks!