SFML community forums

Bindings - other languages => DotNet => Topic started by: First on October 09, 2013, 08:04:33 pm

Title: Zoom
Post by: First on October 09, 2013, 08:04:33 pm
How to use the camera to adjust distancing back and forth? Using a class View (Zoom)
Title: Re: Zoom
Post by: zsbzsb on October 09, 2013, 08:08:49 pm
What in the official tutorial (http://www.sfml-dev.org/tutorials/2.1/graphics-view.php) doesn't make sense?
Title: Re: Zoom
Post by: First on October 09, 2013, 08:37:13 pm
I've seen. I just do not understand how the camera that would move forward.
Title: Re: Zoom
Post by: First on October 09, 2013, 08:49:01 pm
All I get it. Sorry for the carelessness. By the way, as well as a flip or sprite?
Title: Re: Zoom
Post by: zsbzsb on October 09, 2013, 08:51:34 pm
By the way, as well as a flip or sprite?

Not sure exactly what you mean, but to make the view upside down just rotate it 180o. As for how to flip a sprite? Just give it a negative scale.
Title: Re: Zoom
Post by: First on October 09, 2013, 09:16:20 pm
Sorry, I am abroad, I know bad English. I need to reflect the sprite on the contrary, like a mirror.


 
 sprite.Rotation = -180

No
Title: Re: Zoom
Post by: G. on October 10, 2013, 03:58:58 am
I'm sure your english is good enough to type "sfml flip sprite" in any search engine and read at least the first result (http://en.sfml-dev.org/forums/index.php?topic=7572.0).
Use a negative scale. Or set the texture rect to (left, top + height, width, -height) (horizontal mirroring) or (left+width, top, -width, height) (vertical mirroring)