Hi, I'm trying to figure out how to make my character do a "wall push" animation if they are being moved right up against a wall. I am using "Collision 2D Event" and "Get Collision 2D Info" in order to figure out when the player is colliding with a wall. The only problem here is it's not quite working. I want to know when the player has a collision on the left or right side (X:-1 or X:1, respectively). In "Contact Normal" I can get what side of the terrain the player has hit, but not what side of the player is being hit. I cannot use the information from the terrain contact points to extrapolate the side of the player because the terrain contact points do not update in the manner I need. essentially, if I am colliding with the top of the terrain, and the left side, then the "contact normal" will be X:0 Y:1. If I then jump and collide with with left side, and only the left side, then the "contact normal" will be X:1 Y:0. When I fall back down to the ground, it will be X:1 Y:0 until I release the "move left" key. When I do this (without any change in position) the "contact normal" becomes X:0 Y:1.
Is there a better way to detect collisions or do what I want to do in a different manner? Any help would be appreciated.