I have no idea why this is giving me troubles.

I have no idea why this is giving me trouble… At all…


However I can hopefully give you all the info you need. I’m 1:53 into “2D Space Shooter - Part 3 - 2D Rotations and Map Boundaries!”.

Show us PlayerMovement.cs, especially line 42.

You are incorrectly trying to assign a vector to a float. I assume you want to assign one element of the vector (x,y,z) to that float instead. Double check the video to make sure that line 42 in your code is exactly the same as it is in the video.

Line 42 seems OK to me.



(Win32): Loaded ‘C:\Windows\SysWOW64\ntdll.dll’. Cannot find or open the PDB file

That’s the error I’m getting that I have no idea what it is…

Or did you want to go after line 42?

I’m shooting in the dark here.

Don’t worry about the PDB file errors, those shouldn’t break anything Unity related.

Look carefully at the example code and your code, they are not the same.

In the video:

“pos += velocity;”

In your code:

“pos**.y** += velocity;”

Remove the “.y” and it should all work.

I did that and it worked! Thanks!

1 Like

Brian, your such a fool. Good thing you have the nice people on this here to help you!