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.

asked Nov 27, 2019 in Engine by k4b00m-Hozaifa (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.

answered Nov 27, 2019 by kidscancode (17,714 points)
selected Nov 28, 2019 by k4b00m-Hozaifa
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.