Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
2  
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
add comment

1 Answer

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
1  
This answer is so short... it feels like cheating. –  Tharwen Jul 24 '12 at 11:00
add comment

Your Answer

 
discard

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.