Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Zoom  (Read 3746 times)

0 Members and 1 Guest are viewing this topic.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Zoom
« on: October 09, 2013, 08:04:33 pm »
How to use the camera to adjust distancing back and forth? Using a class View (Zoom)

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Zoom
« Reply #1 on: October 09, 2013, 08:08:49 pm »
What in the official tutorial doesn't make sense?
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Zoom
« Reply #2 on: October 09, 2013, 08:37:13 pm »
I've seen. I just do not understand how the camera that would move forward.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Zoom
« Reply #3 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?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Zoom
« Reply #4 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.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Zoom
« Reply #5 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

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Zoom
« Reply #6 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.
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)
« Last Edit: October 10, 2013, 04:03:30 am by G. »