Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a sprite that I can rotate and I wonder if there is a way to change the rotation back to the initial value?

share|improve this question
sprite.Rotation = 0;? – Tharwen Jul 20 '12 at 10:16
Can you be more specific? By initial value I assume you mean default. In that case it's 0. – Austin Brunkhorst Jul 20 '12 at 10:16
Thanks! At first I didn't thought that it worked, but I had missed a call to a property to set this value. – 3D-kreativ Jul 20 '12 at 10:25
@Tharwen Make it an answer and we'll get this question wrapped up! – Byte56 Jul 20 '12 at 16:46
up vote 2 down vote accepted

Set the rotation of the sprite to 0:

sprite.Rotation = 0;
share|improve this answer
Simple and easy. Thanks Tharwen. – Byte56 Jul 23 '12 at 17:36
This answer is so short... it feels like cheating. – Tharwen Jul 24 '12 at 11:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.