E
Edan Momu
Guest
I'm working on a top-down game and I want to create a mechanic where the player is chained to a metal ball the metal ball can move but it slows down the player. And I'm having a problem with getting it to work properly.
I need the player to be able to move, if it's further than the length of the chain, pulls objects into range of the chain, and then check for the collisions of both the player and the ball against a wall object.
Getting the player to drag the ball is no problem, getting the collisions to work is no problem, I have a problem getting both systems to play nice with each other, I've tried a few ways to do it but always get jitter or some other problems with collision.
I'm asking for ideas on how to handle something like this, none of the code I have right now is working properly.
I need the player to be able to move, if it's further than the length of the chain, pulls objects into range of the chain, and then check for the collisions of both the player and the ball against a wall object.
Getting the player to drag the ball is no problem, getting the collisions to work is no problem, I have a problem getting both systems to play nice with each other, I've tried a few ways to do it but always get jitter or some other problems with collision.
I'm asking for ideas on how to handle something like this, none of the code I have right now is working properly.