Game Development Community

Invalid Custom Polygon Items '11' expected '10' error.

by Matthews_30 · in Torque Game Builder · 10/13/2005 (6:26 pm) · 1 replies

Do somebody know why this error appears in the console?

i am writing the tutorial code for t2d.

regards.

matt.

#1
10/13/2005 (7:18 pm)
It appears that a call to setCollisionPolyCustom() has a mis-matched set of parameters being fed to it. I'm guessing by the error that you're passing in '5' for the first parameter, but have 11 values (or possibly a stray space at the beginning or end) in the second parameter. The second parameter must be exactly 10 values separated by spaces (five "X" SPC "Y" pairs) without any leading or trailing whitespace.