I've decided that I wanted to add the ability for the character to push crates around to help him get through the level. Although, I've been having big trouble with this. Whenever the character moves away after pushing the crate, it trails behind him like it's attached to him. with multiple crates, I will push each crate, but every crate after the 1st one causes the the 1st to move instead. How can I fix these problem?

I would post the code, but it's absolutely atrocious. I'll just explain the method that I have for their movement. For every update of the player, I run a function that checks for collisions b/n the crates and the player and makes a list of what crates are colliding with the player and mark those crates with a variable called "beingPushed". Then, when I update the crates, if they are beingPushed, then it sets their horizontal movement speed to the same as the player. Otherwise it sets the crate's HM to 0.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org