I have a sprite I want to move around the screen like in the game geometry-wars. I can rotate my sprite just fine but to move it based on where it is pointing I can not. My problem, I think, lies in this bit of code:
spriteObject.position.x = spriteObject.position.x + speed*cos(move_angle);
spriteObject.position.y = spriteObject.position.y + speed*sin(move_angle);
I keep getting syntax errors, invalid Ivalue error to be exact. How do you set the position on a sprite?