jump through a platform and then land on it
scitunes
Member, Sous Chef Posts: 4,047
Anyone have any ideas how you could have a platform that your player can be directly under and then jump straight up through the platform and then on the way down land on that same platform?
Comments
you could check the players y-motion if its positiv or negativ (moving up/down) when colliding with your platform...
If "player" velocity is less than 0, "platform" (or actors with tag "whatever) is non-collidable.
Else "platform" is collidable.
And that's it.
If so, I'd like to see details on what rules were placed in order to do this, I could use this for my game
With the jump how to using the thin jumping platform that sits on top of the normal platform, use that with a Rule that says
Rule: If collides with StandingPlatform
--Rule: If collides with JumpthroughPlatform
---Otherwise: Collide(with instance of StandingPlatform)
You implement these rules within the actor: platform? Or player 1 actor?
Sorry !
You just want to know when you have something to stand on but you are not in the middle of the platform. I'll edit the example above.
Is there any way of preventing the player from walking into the platform?