Im very newbie and making a 2d spaceship game, similar to Stargunner.
I have target(enemies) coming from right side of screen and heading left, where my ship is at.
My targets are circles who randomly chooses Y coords from 0, 640.
The thing is. When one of my targets hit the upper "wall" i want them to bounce down.
And my problem is that i cant modify the value of Points. What can i do, is it even possible to modify Points values?
I have my properties in GameItem class.
"Cannot modify the return value of 'SpaceAttack.GameItem.Position' because it is not a variable"
if (target.Position.Y < 0)
{
target.Position = new Point(this.target.Position.X, this.target.Position.Y = 0);
target.Velocity = new Point(this.target.Velocity.X, this.target.Velocity.Y *= -1);
}