- Home /
One-way Platforms (2D)
I'm wondering how I would go about making a moving one-way platform. I already know about the platform effector, and it doesn't seem to be working for me (even though it worked a while ago). My platforms and player are fairly simple (rectangles and squares). I'm using some (pretty much all) of the code from this asset package: https://www.assetstore.unity3d.com/en/#!/content/69772
If it's possible, I'd like to keep all of the code because that's the only thing that's worked for me so far.
The platform effector is designed specifically to provide that functionality. Hoe does it not seem to be working, and what did you change from when it used to work for you?
The platform effector used to allow my player to jump through it and land on top like a normal collider, but once I had the platform move and carry the player on top of it, the effector stopped working.
Works ok for me. Have you erroneously marked your collider as static?
Answer by IsaiahKelly · Mar 13, 2017 at 10:28 PM
Make sure any collider you want to jump through has tag set to "Through"
There seems to be a bug with that asset that allows you to jump through the first moving platform in the demo scene even though it's not tagged with the "Through" tag. Which is needed in order to jump through other static colliders or any collider normally. Setting the moving platform's tag to "Through" solved this for me.
Wonderful! It worked like a charm. Thanks for your help.
Your answer
Follow this Question
Related Questions
Weapon types in a 2d platfomer 0 Answers
Rigidbody2D.AddRelativeForce not working 1 Answer
jittery collisions 2d platformer 1 Answer
Particle System Won't Play At All 0 Answers
2d character not flipping ,2D animation not Flipping. HELP 2 Answers