I have a normal laser, but I need a tractor beam too! So it should pull objects towards it, and not the player towards end of the beam
Develop games in your browser. Powerful, performant & highly capable.
Most basic way would be to move them toward player.
For each object
When overlapping tractor beam - Move at angle "angle(object.x, object.y, player.x, player.y)"
If you can give capx I could try to implement it.