Here's the coding :3
Soooo with the way this coding is currently setup, the snowball will travel repeatedly in the direction the player pushes it towards. (It's a sliding snowball, and the player is immune to the sliding effect)
However, I ran into a previously unnoticed issue...
Whenever the snowball touches a wall, it's still "repeating" the pushed movements. I know this because you can push the snowball against a wall that the player can also push. When I pushed the moveable wall that was blocking the snowball, the snowball continued moving in that direction despite not being pushed.
I previously did not notice this, but just discovered it when play testing.
How do I get the ball to stop repeating the movements once it touches something? I can't seem to find a way around that.
Soooo with the way this coding is currently setup, the snowball will travel repeatedly in the direction the player pushes it towards. (It's a sliding snowball, and the player is immune to the sliding effect)
However, I ran into a previously unnoticed issue...
Whenever the snowball touches a wall, it's still "repeating" the pushed movements. I know this because you can push the snowball against a wall that the player can also push. When I pushed the moveable wall that was blocking the snowball, the snowball continued moving in that direction despite not being pushed.
I previously did not notice this, but just discovered it when play testing.
How do I get the ball to stop repeating the movements once it touches something? I can't seem to find a way around that.