HI all I have come across an error and I dont understand why I have got it.
I have 2 variables called box1 and box2 referencing objects. both objects have 2 attributes, these are colour and position.
the error occurs when I execute the following statement: [I][box2 = box1.getPosition();/I]
I get the error message: [I][Semantic error: Variable assignment: box1: Can't assign
primitive value to object type:class Box/I]
if anyone could explain this eror it would me a great deal and I will ofcourse thank the person who helps in the correct way.