How to make sprites not able to be walked through using blocks?

I want to set up something where the player can’t walk through certain projectiles. Below is my current code that only works for the left side of blocking and occasionally the top side/bottom side.

1 Like

One thing to keep in mind is the speed of the player. If the player moves with 100vx 100vy, the opposing velocity should be higher so it works.

1 Like

I tried what you said but it didn’t work. In the time I was waiting for a response, I wrote new code that mostly worked, but when the player collides with the top it pushes them off the top as the side collision code is running.

1 Like

Can you send the code?

The whole code?

1 Like

Is what you are saying here somewhat related to this, @Luke?:

Just share the link by pressing this button in the top right corner

I was trying to say that the velocity applied to the player should be higher so it counteracts any player inputs.

1 Like