object but I get this error:
obj.position.x += 1.0;
(x error: invalid lvalue in assignment)
The above is equivalent to:
[obj postion].x += 1.0;
That isn't doing what you want. It's invoking the -position method
on the object, which returns a Vector2D stru
On Aug 25, 2008, at 6:25 PM, Don Arnel wrote:
I tried to modify the "position" property in another file after
creating an object but I get this error:
obj.position.x += 1.0;
(x error: invalid lvalue in assignment)
The above is equivalent to:
[obj postion
= 0.0;
_position.y = 0.0;
}
return self;
}
@end
I tried to modify the "position" property in another file after
creating an object but I get this error:
obj.position.x += 1.0;
(x error: invalid lvalue in assignment)
I can assign the value wi