Greetings everyone!
So im having trouble with my jumping. the jumping works fine, exept that i can jump infinite times while airborne, witch makes me literally flying.
I simply just need a single jump at a time. anyone got any idea for what to do here?
Comments
AC should already make a grounded check for you, but it depends on what components are being used, and the way you've configured your Player component. In particular, the Ground-check layer(s) field must match the layer that your ground collider is on.
Please post the full Inspector from your character's root object, it may help to shed some light. Does the Demo game's player, Tin Pot, work? You can find out by dropping his prefab (from AdventureCreator/Demo/Resources) into your scene before running.
Here's my character's full inspector:
No extra script/tag is necessary on your ground, only a collider that covers it on the "Default" layer. However, your Player is also on this layer, which may be causing a conflict - try moving it to the "Ignore Raycast" layer (plus any child objects).
If that doesn't work..
As this could either be due to your player, or the scene, again try it with the 3D Demo's player prefab. If he works correctly, but yours doesn't, then the issue will lie with the player. Conversely, try dropping your player prefab into the 3D Demo scene. If he then works, then the issue will lie with the scene. Either way, it'll help us narrow down the problem.
i've been testing my character in the demo scene.and with the same result.
tin pot seem to work in my own scene.
You can PM it to me, with graphics/animation included, as a .unitypackage file. No AC assets should be necessary, but please - again - let me know what AC and Unity versions you are using so that I can accurately test it.