While going up or down the slope provided in the tutorial, the character occasionally becomes airborne. I’ve adjusted the floor_snap_length and angle of the CharacterBody2D, but about once in three attempts, the character becomes airborne near the seams between tiles. The issue persists even when walking slowly.
I previously saw a similar question suggesting adding a “time elapsed” condition, so I tried that, but it didn’t improve the situation. There might be another cause, but is there any solution? Currently, the character is set to be in an “airborne” state if it’s not in contact with the ground or slope in a downward direction.
As mentioned in previous reports, the behavior where hitboxes are detected in mid-air at tile seams seems somewhat questionable, so I will check with the development team.
I have tried various things on my end, but I cannot reproduce the issue…
Would it be possible for you to send us the project where the problem occurs via a file-sharing service like GigaFile?
If you believe it is a good project for others to see, feel free to write it here. Otherwise, you can send a message to me directly; please include the URL in that message.
Sorry, I am the one who wrote “it gets fixed after a certain amount of time”…
Actually, subsequent verification revealed that the issue was not actually resolved. Since I didn’t know how to fix it, I compromised by implementing a workaround using a massive slope object, thinking it would at least look acceptable. I apologize for the misunderstanding, as I failed to include this context in my previous question.