Now I had a working code for this but lost it recently but I have a character you move with the keyboard keys, and I have a wall I want to stop the character when they hit it.

Now the code I had I cant remember but it was really simple, I think it was so when the character ran into it, it had a _x=-4 and _y=-0 or something so no matter how much you tried running into the wall it would just keep pushing the character back not letting them pass through it.

I'm sure at least one of you Guru's in here know what I'm talking about