Skip to main content

090. Unity3d Tutorial - Input Manager part 2

See video

We continue with another tutorial in our Hack And Slash demo made with the Unity3d Game Engine.

In this tutorial, we continue working with the Input Manager that comes with Unity to learn how to set up some default controls that our users can change to their own tastes before they play the game.

Unity API: 
Tags:

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mirilaika's picture
Offline
Joined: Jul 8 2011

hi! thanks again for the great tutorials!
but i find a little problem in the half of tut.90 - when i put 4 or 6 buttons to rotate the camera, except camera rotating my player start walk in a circle :)
can you help me? thanks!

I fixed it. the problem come, because my laptop don't have keypad keys. it simulate them with function button + some other key.

Offline
Joined: Oct 25 2011

Well my problem's totally different...

When I hit the 4/6 key the camera moves a little bit closer to the character, but that's all... And if I use my right mouse button and turn my camera 90 degrees and then press 4/6 while still holding the mouse button, the camera swings back to that zoomed in spot...

First I thought I could've put _x/_y =0 under the ButtonDown statement, cause that could've explained it but I haven't so I can't figure out what I'm doing wrong. (Everything is working as it should, except for the buttons).

And thumbs up for the Tuts, they're really great. (Learning a lot) :)

------

Well I had a 3rd look on both chapter 89 and 90, and now I realized that I had missed the RotateCamera(); in the: if(_rotateCameraKeyPressed){ statement...

So problems fixed now ^^, hate when you miss a line of code and there is no errors ^^