This project has moved and is read-only. For the latest updates, please go here.

Moving static Objects

Topics: Developer Forum
Jul 1, 2013 at 11:12 PM
Is there anyway of moving a static object without using any method which starts with "Apply"?
I am looking for something like this:
MyOjbject.Position.X += 10;
But it give me back an error.
Thank you so much
Jul 2, 2013 at 7:26 PM
Position is a Vector2, which is a struct. Structs can't be manipulated the way you are describing, so you have to do the following instead.

MyObject.Position += new Vector2(10,0);