0 votes

What I'm trying to do is detect if my character is coliding in the corners of a tile, my character uses kinematic body 2d, and tiles use rect shape 2d, I have no idea how to do this in godot

in Engine by (23 points)

1 Answer

0 votes

I think we might need more information as to what you're trying to accomplish, but you should be able to do something like if isonground(): if position.x < tile.x or position.x > tile.x + tile_width. Not sure if that is what you're asking though, sorry :/

by (534 points)
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.