Player/ Character physics?

One of my students is building a game where they have a character (“cat4”) attached to the camera. The character is coded using the up/down/space/ etc. keys, but after a little bit of play, the cat will randomly start falling down. Can someone look through the code and give us any ideas as to why this is happening?

Cat exploration game

Thanks!

This is a really cool game! I think the problem you are refrencing is because when the character moves outside of the world borders, it will appear to be inside of the ground. Therefore, it will look like the cat has fallen. This is also because the objects inside of the enviornment that is provided (e.g. Forest, city, etc.) do not have physics. (These would be the buildings that are premade in the city, or the premade bushes in the jungle.) So, there is no easy fix, but if you add code that checks the location of the cat before moving it, it would be fixed.(this would basically stop the cat from interacting with the premade objects, or going outside of the world borders.)

Well how do you use the ai buddy I think it’s called