Author | Message |
---|---|
hal255
Posts: 51
|
Posted 19:17 Oct 24, 2015 |
Hey guys. I'm not sure why I am getting the error on (ball-y-pos (first otherballs)) where it is expecting a ball, but getting a list of balls. Otherballs is a list of the remaining balls, so (first otherballs) should only give it one ball. Here is the function I wrote: #| Here is the output: done updating y-pos: 28
|
hal255
Posts: 51
|
Posted 19:28 Oct 24, 2015 |
I finally see the problem... [(>= (+ (ball-y-pos this-ball) (ball-y-pos (first otherballs))) LOWEST-Y-POS) ; if distance of the two balls is greater than LOWEST-Y-POS
It should be: [(>= (+ (ball-y-pos this-ball) (ball-y-pos (first otherballs))) LOWEST-Y-POS) ; if distance of the two balls is greater than LOWEST-Y-POS Last edited by hal255 at
19:29 Oct 24, 2015.
|
shewitt2
Posts: 5
|
Posted 20:50 Oct 24, 2015 |
That indeed would cause the issue. Glad you finally figured out what it was! |