error CS1525: Unexpected symbol `float'
So I was following a YouTube tutorial for a game i'm making and atm i'm doing prallaxing. I copied the code word for word and I am still getting the error.
NOTE - I HAVE NEVER CODED C# BEFORE AND THIS IS MY FIRST GAME
Please Help
Answer by DMAD777 · Oct 09, 2015 at 06:28 PM
Please dont put your code on a picutre just paste it in using the Code Sample on the toolbar where you can make your text bold
but try changing background[1].position = Vector3.Lerp (backgrounds[1].position, backgroundTargetPos, smoothing * Time.deltaTime); to
background[1].position = Vector3.Lerp (backgrounds[1].position, backgroundTargetPos, smoothing) * Time.deltaTime;
Your answer
Follow this Question
Related Questions
Error stage @username 1 Answer
Why is it that when I added a C sharp script to a game object, the game object disappeared? 0 Answers
Can't add Orbital script - "The script needs to derive from MonoBehaviour!" 0 Answers
Create a copy of a non MonoBehaviour class and set variables from other class 0 Answers
ArgumentOutOfRange: Argument is out of range Parameter name: index 0 Answers