Hello!
I've been trying to figure out how to make a "rope" tethered to the player using a tiled BG. The other end of the rope would be attached to another object, and the rope would change its angle based off of the distance to the player. The length of it would also stretch and retract depending if the player is moving left or right. I've tried and failed several times and am at a loss at how to implement this. Any ideas or help is appreciated. Thanks for your time!
set tiled background to:
x = player.x
y = player.y
angle = angle(player.x, player.y, tetherpoint.x, tetherpoint.y)
width = distance(player.x, player.y, tetherpoint.x, tetherpoint.y)
Develop games in your browser. Powerful, performant & highly capable.
Got it working! Thank you fedca for the help! :)