Skip to content
Discussion options

You must be logged in to vote

I think your best bet would be to override canCollideWith on your player or your platform, and simply add your y velocity check condition to determine whether the collision is valid or not.
I don't think it makes a huge difference whether that code would be in the player or the platform class.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BJC95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants