Q:

Box collider pushes me out of it's area slowly, I can pass through it if moving quickly

I am new to Unity. I Setup a character in unity2D with a rigidbody. I had the scale off my sprites set to 100 pixels per unit. At this scale, my rigidbody character stood on top of platforms and could not pass through walls containing box colliders. I decided, that to make things easier, I would change all sprites to 1 pixel per unit. After doing so, I scaled everything (variables, sizes, etc.) by 100. I confirmed that the box colliders on both the caharcters, floor, and walls, are all in the same places, relatively. The box colliders on the floors still work, but the wall box colliders behave differently. When I walk into a wall, the wall slowly pushes me in a direction (depending on whether or not my character has walked through half the wall or not). The wall should be stopping my motion completely.
The code is very simple, but this is what I use to move:
if (Input.GetKey (KeyCode.D)) {
        transform.Translate (Vector2.right*moveOffset*Time.deltaTime);
        transform.localScale = new Vector3(1,1,1);
        anim.SetBool("moving",true);
    }

Do note that the moveOffset variable, was scaled by 100 after the change. Thanks in advanced!

A:

You are modifying the Transform of the gameObject. When using physics, changing the transform of the object is a big NO-NO (unless it's to perform a teleport or something like that).
If you want to move a gameObject with physics behaviour you should do so by adding forces to the rigidbody, or changing it's velocity.
Also, when applying changes to physic objects, you should be putting your code in void FixedUpdate() instead, and use Time.fixedDeltaTime (FixedUpdate() runs at a constant rate, unlike Update() )
Try this:
void FixedUpdate()
{
    if (Input.GetKey (KeyCode.D)) {
        GetComponent<Rigidbody2D>().velocity = new Vector2(speed,0);
        anim.SetBool("moving",true);
    }
}

Keep in mind that even after releasing the key, the object will keep moving, being slowed down by the ´linear drag´.

