Hi having trouble with the player movement in the dream land shooter game tutorial on the unity website running 4.5 then updated to 4.6 on xp still. I’ve substituted spheres and then put all the code on top it all works well except the UI call not supported by the version. The problem tho is that when I try to move around with mouse the player doesn’t turn to the mouse and only shoots forward tho it does move position with the mouse. The forward is not getting turned? Idk if this is an xp problem says it was tested on 4.6 so started on 4.5 then reinstalled to 4.6 and can’t for the life of me figure out why it doesnt turn with the sample code. Am I misunderstanding and the animation is the part that is being turned?(I have no animations added left out the animator window part) Seems as tho it should still turn. The move() script works fine just the turning() that doesn’t do anything. I thought maybe was a change later on to the PlayerMovment script like some of the other scripts but haven’t found anything. As the video says should turn and move to the mouse just with that code but turn() just doesn’t work. I keep searching and all I find is different ways to make it work yet not that specific implementation. Has rigidbody has all the components just won’t turn. The EnemyAttack script will turn toward the player and move toward it. I’ve even tried making a child and explicit telling the child to turn (thinking that just have the sphere move and another turn for the shooting)but that fails as well. Is it win xp? I don’t know c# too well I understand the basics a bit can see the flow just doesn’t work like the tutorial said. Thought maybe the extra initial collider created by the sphere so removed that still no turn. In the edit>project settings> input on the first horizontal and vertical I had to change the drop down from: keyboard mouse button to mouse movement. Just to get the player to move with the mouse. Leads me to the thought I have to imply the mouse directly with the x and y input before the quaternion? Mouse.x mouse.y? I’m really stumped at a point to start over just to figure this out. That could be starting on 4.5 version could affect it. Could child prefab cause not to turn? I can’t find anything locking it. Have the constraints to lock to the plane on and off still no turn() numbers don’t change tho the movement numbers do change and move the player. Could the collider axis matter? I’m really just spit balling cause all new to me with tiny bit of coding background. It’s similar to me by means of website java and playing muds set up whole life bars and all that with zmud if know Muds, Im an advanced c4d user. So have lil bit of the basics. But I’m totally confused. Basically taking my c4d and using the sphere to do all the coding then drop the c4d as a child to ride around. Figuring the less poly of the sphere will run better just like dynamics in c4d? Really unlocking a door for me. Just can’t get this simple turning() to work with mouse position exactly copied from the tutorial onto the sphere. Could the c4d object made prefab be locking it somehow? When I switch the project settings input to keyboard/ mouse button it acts the same movement works with buttons turning doesn’t. I thought making the c4d child like a turret just grab it secondary to make it work yet taking the pieces out of player movement and creating a new script still doesn’t allow it to turn. Or is this all that only works in pro version?
Thanks at all sorry if this question /thread placed wrongly. Trying to learn this while wait for a real computer to better know the program/coding in its infancy. I see I could just load the preprogrammed controls but I want to learn.
Awesome platform very simple to implement n transfer my own 3D amazed I had had not found it earlier just this lil problem.