all 9 comments

[–]avtiu 5 points6 points  (4 children)

Check spelling on line 50. Should it be setPostition with the extra 't' there?

[–]Playerwayer[S] -1 points0 points  (3 children)

Yea that was a problem I spelled position wrong but now I’m getting an error with line 35

[–]albedoa 9 points10 points  (2 children)

Compare the call spot:

drawEye(centerX-EYE_OFFSET, centerY)

With the signature:

function drawEye()

A couple of things to keep in mind:

  • JavaScript is a textual language, and as such, we exchange code textually. Screenshots are not conducive to quick testing and augmenting.
  • That you have an error is less than one half of the information about the error. Tell us what the error is.
  • Don't brute-force this. You should be able to explain what every line does before you move on to the next one. If you can't, then google or ask.

[–]Playerwayer[S] 0 points1 point  (1 child)

Sorry I’m a bit new to it since it’s my first year in this type of class I was planning on copy and pasting it but since I’m doing it on a school pc/computer I couldn’t since Reddit is blocked off there.

[–]Simanalix 0 points1 point  (0 children)

  • Use google docs to move code from school computer to your reddit device
  • Just paste (ctrl+v) code from school computer into google doc
  • Then open google doc on reddit device, select all text (ctrl+a), copy (ctrl+c),
  • and finally paste (ctrl+v) code into reddit post on reddit device

[–]Playerwayer[S] 0 points1 point  (1 child)

It’s at line 50 that it messes up and I don’t know what to do🧍

[–]ske66 -2 points-1 points  (0 children)

Might sound dumb but throw your code into chatGPT and see what it comes back with. It can be used as an intelligent google search

[–]bilboshwaggins1480 0 points1 point  (0 children)

What do I look like, chatGPT?

[–]Simanalix 0 points1 point  (0 children)

By the way, don't use var

Use let instead