its the coding that I enjoy most and its the only way to make your game a bit different to others. I will never be advanced coder but I make things work. Wouldn't want it any other way.
After making the gun a child of the player instead of the camera, when I run the game the player/camera moves on its own with no key press. If I remove the gun then everything works fine.
Anyone had a similar problem?
I still got Blitzmax and le 2.5 on my machine. Sometimes I am tempted to go back to it, but then the forum would have less interest for me, so I stick with le4
in my fps game a strange effect is occurring. if I press "w" key to move forward and then push forward the mouse my player and camera start going backwards fast and start rising upward way above my map.The only code I have changed in the last 2 days was to change gun from model to prefab.Latest drivers make no difference. Anyone have this problem?
ah. Thanks everyone. looks like if I set up character in editor then save it as prefab I can cu out a lot of coding. I didn't realize that characters could be prefabs.BIG mistake made over a long period of time.
no. Follow works without point but then the enemy walks backward.
It looks to me that the spot point points to is low down on the target character making enemie lean forward when very close.
I am using point and follow with enemy characters but when they get close to the camera/player they lean forward and seem to go downwards.
Can this be corrected in any way/
I spent 3 hours trying to get this right but it did not respond to any values.
I changed the character to a zombie character I got from tgc a long time ago.
It works fine with same code.
Thanks to all for trying to help.
following code did nothing.
mutant.control->SetCharacterControllerAngle(180);
and neither did the code below.e.
mutant.modell->SetCharacterControllerAngle(180);
I might try SetRotation with a Boolean flag in main loop.
with a more common format than mdl I could have loaded it into uu3d and rotated the model
EDIT: it would be nice to have this feature in model editor..
its the mutant character from workshop. I use "Point" and "Follow" in my code but the mutant walks backwards. I tried rotation 180 in editor properties and also in code . Must be a way but I can't find it. Heeeeeeeeeelp!