Question by
mikedavvy · Jan 10, 2017 at 10:14 AM ·
collision2d game2d-platformercollision detectionplatformer
Player passenger moving when being pushed by two platforms
I am making a 2d platformer, and I am having some trouble with player and platform collisions. When the player is riding an upward moving platform, and then gets hit from the side (either right or left), the player always either falls through the moving platform below it, or through the platform hitting it from the side. Is there anyway to prevent this from happening? Also when the player is hit from above by a moving platform, it gets stuck inside the platform (I assume it is because the detection from above is firing, but I cannot make it so it stops firing when coming into contact with platforms)
Any help is appreciated.
Comment
Please, provide the relevant script if you want some help