Problem with KH movement

Posted By: Espér

Problem with KH movement - 04/24/08 21:41

Hi..

ok..
I tried the tutorial.. and i tried to copy the 4 Scriptfiles out of the demo..
But nothing helped..

If i start my Level ( 1 Entity for the Terrain and 1 for the player + Skybox), the player.z increases.. the player lfys upwards ^^ but i´m not pressing any button..
If i hit a walking key, the fly stops..
But when i jump, he stand on the highest Jumping point, like ther´s ground..


Do you have any answers for me... don´t knwo what to do..
Posted By: Nems

Re: Problem with KH movement - 04/25/08 09:45

Post your gravity script so that we can ID where to edit to get it to work.
Posted By: Espér

Re: Problem with KH movement - 04/25/08 17:38

Here´re the Scripts, models and level Files in an Archive:
>>click me!<<
Posted By: Pappenheimer

Re: Problem with KH movement - 04/25/08 18:36

Which version of A6 or A7 do you use?

The model of the landscape(!!! Where is the terrain?) that you use doesn't work for collision properly.

Try it with blocks to be sure that it isn't related to the coding.

I'm quite sure that it is simply because of the model.

The trace from the model down to a ground needs to find solid ground to get a value to work with which is different to zero. If there is solid ground and the model falls onto it, trace returns zero, if there is no ground at all, trace returns zero, too! zero means within the code: already on ground! Even, if there is no ground at all! (I didn't look into the code. this is just guessing.)

BTW, you sky box is unnecessarily huge! I don't know what this level contains, but it shouldn't compile longer than 1 or 2 seconds...
Posted By: Espér

Re: Problem with KH movement - 04/25/08 19:06

The Skybox is just for debugging...
I use A7 Extra...
© 2023 lite-C Forums