- Home /
Movement script, moving up when moving positively in z axis
I created a question about to ask about help converting a script from javascript to c#, I got help but now I'm having a bug , he said to create another question on this, anyway I have no ideia why it's happenning. When my character moves positively in z axis in the world coordinate system, I start going up, doesn't maatter if I'm walking back, sideways or walking forward, if I move positively on the z axis(world, not local) I start moving up. I will give you my capsule with the movement script, mouse script as a unity package, also in javascript since this happenned trying to convert from javascript to c#, so you can maybe get what's the problem in my script better. And please comment what I had wrong. Thanks in advance. https://dl.dropbox.com/u/151460612/Player%20Capsule.unitypackage
Sorry, didn't download your package. You should just post your movement code. If you've already posted that code in another question, please create a link there.
I suspect that you have either rotated a transform, or you're simply moving the object incorrectly.
the code is posted here, go to the answer that Nidre gave to me, and on the bottom there is the mouselook script, converted from ajvascript to c#, the problem could be there, but I don't think so
Answer by MadJohny · Apr 10, 2013 at 08:57 PM
Ok I got help from one guy, thanks anyway, now it's fixed