I need help with specific types of movement.
- by IronGiraffe
I'm adding movable crates to my game and I need some help with my movement code. The way I've set up my movement code the crate's X and Y are moved according to a vector2 unless it hits a wall. Here's the movement code:
if (frameCount % (delay / 2) == 0)
{
for (int i = 0; i < Math.Abs(cSpeed.X); i++)
{
…