I am new to games development and 3d graphics so please forgive the stupid questions :). My problems are to do with the Lerpz tutorial, and its at the ver beginning. I figured someone else had bumped into this so thought I’d post :).
Problems are:
The project has to be converted from a previous version of unity to unity version 2, which may cause the next two problems (guess).
When adding Lerpz onto the platform, if you press play he teleports to a new position! I compensated for this by moving him in the scene view further along so he appears on the platform but very strange…
When adding the camera to lerpz (or lerpz to that camera I don’t know the lingo :p), this seems to be fairly straight forward, but again when I click play it starts spamming me with errors!
I can replicate this as I have tried twice with the same problems, and can paste the errors if needed but again I’m guessing this may be a familiar problem.
I don’t believe that the conversion is causing the errors you’re describing.
I’m not exactly sure why Lerpz is changing position when you start the game. Try fixing the camera first and see if you’re still having that issue.
As far as the camera errors, I’m going to assume that you’re getting an “UnassignedReferenceException”. I would recommend reading pages 14 and 15 of the 3dPlatformTutorial.pdf file again as it describes this error, why you’re getting it, and how to fix it.
Try that and then we can see if Lerpz is still not being positioned correctly.
Do you have a spawn point in your scene? Is it possible he was falling into the death zone and respawning? Or just spawning for the first time (at the spawn point rather than where you had placed him in the scene view)?
Thanks for the prompt responses, I have solved the random repositioning, i saved it before playing the game which seemed to do something !?. Anyway I have attached a screenshot of the error.
I did look at pg 14 and 15, as I did previously but I think this is a different error. As you can see I have assigned the Plyaer object the the camera script.
Make sure you’ve added the ‘Third Person Controller’ to your ‘Player’ object.
Page 15 If you click Play now, the camera still won’t work. You will see a errors relating to the SpringFollowCamera script. It needs the target to have a ThirdPersonController script attached to it. This is because a thirdperson camera is closely tied to the player controls: it needs to know what the player is doing so that it can react accordingly.