Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator argument #2 must precede operator argument #1 #17

Closed
GregerSundvall opened this issue Jan 14, 2021 · 1 comment
Closed

Operator argument #2 must precede operator argument #1 #17

GregerSundvall opened this issue Jan 14, 2021 · 1 comment

Comments

@GregerSundvall
Copy link

Hi and thanks for this awesome tutorial! It's a great project and I really like how you're presenting it.
I've run into a problem a bunch of times though that i really dont get. I'm somewhere in the beginning of part 3 now and i'm told to enter
player.direction = input.velocity / length in world.update.
byt that gives me the error
Operator argument #2 must precede operator argument #1
I've gotten this a few times before and then i've been able to flip it around since it's been multiplication. This time however it's division so i can't flip it.
I've googled the error without finding anything but I'm pretty new to coding so maybe it's just me...

@GregerSundvall
Copy link
Author

I had screwed up in the vector calculation functions. After all the troubleshooting i've done, of course I had to find it right after I posted...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant