I ran into this problem while trying to make the background move with the camera, I’m trying to make the middle layer move at half speed but then this happened
Any suggestions?
I ran into this problem while trying to make the background move with the camera, I’m trying to make the middle layer move at half speed but then this happened
Any suggestions?
.5 is not the same as .5f
.5 is a double (64-bit floating point)
.5f is a float (32-bit floating point)
Vector3 is 3 floats.
It is giving you this warning because Vector3 defines no way of multiplying itself against a double.
To fix, just add an ‘f’
Yes! You should learn how to read error messages or you are going to have a very rough time programming.
The complete error message contains everything you need to know to fix the error yourself.
The important parts of the error message are:
Always start with the FIRST error in the console window, as sometimes that error causes or compounds some or all of the subsequent errors. Often the error will be immediately prior to the indicated line, so make sure to check there as well.
All of that information is in the actual error message and you must pay attention to it. Learn how to identify it instantly so you don’t have to stop your progress and fiddle around with the forum.
Remember: NOBODY here memorizes error codes. That’s not a thing. The error code is absolutely the least useful part of the error. It serves no purpose at all. Forget the error code. Put it out of your mind.