0 votes

So I am Stuck at a problem where my player is not jumping I think I have implemented everything right and isonfloor() is not working right. I have been stuck on this problem for 2 days now. I have made custom key maps so don't worry about those. I think the problem is with isonfloor(). This is the YouTube tutorial I am following with the timestamp of where I got stuck.

You can find my code here. The code is stored in /Source/Actors/Player.gd and Actor.gd where player.gd extends actor.gd you can also check what ever you want there. Any help will be great thanks guy.

in Engine by (17 points)

1 Answer

+3 votes
Best answer

is_on_floor() is set based on the floor normal value you pass to move_and_slide(). You're not passing a floor normal.

by (20,913 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 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 webmaster@godotengine.org with your username.