-1

So I'm new to coding and have been trying to create a game called zig zag but the tutorial I've been watching is kind of old and have been running into numerous problems but the most annoying so far is this I keep receiving the error message "Missing return in a function expected to return CGPoint" and have tried for hours to fix it with no luck and was wondering if anyone new what to do

enter image description here

Graham
  • 7,431
  • 18
  • 59
  • 84

1 Answers1

0

Check your braces are balanced. Select All your code (Cmd + A) and format it by using keyboard shortcut Ctrl + i. Then check curly braces in your code. Think you have an additional closing brace.