0 votes

I was trying to make a Smash bros. style fighting game and wanted to make platforms, that you jump trough from the bottom. I wanted to make this by toggling the disabled property, but because I have two players I run into issues.

Godot version 3.5
in Engine by (17 points)

1 Answer

+1 vote
Best answer

I would suggest you have an area2d instead of a collision shape on the platform. You could then check in the players script if they are in the area2d and not allow the y vector to have a positive value while they are in it. That way if the y vector is negative they can still move going up but when the y vector turns to positive they will stop moving down.

by (3,321 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.