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

Author Topic: AlexxanderX's Tutorials  (Read 11831 times)

0 Members and 1 Guest are viewing this topic.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: AlexxanderX's Tutorials
« Reply #15 on: April 22, 2014, 09:31:54 pm »
Visual Studio 2013 supports initializer lists (and many other C++11 features that have not been available in VS 2012), I recommend upgrading if possible.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

lilz

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: AlexxanderX's Tutorials
« Reply #16 on: April 22, 2014, 10:38:17 pm »
Thanks a lot for the response. Good to know but I cant update at the moment.

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: AlexxanderX's Tutorials
« Reply #17 on: April 30, 2014, 03:26:17 pm »
Here is my new tutorial: How to flip sprites.
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: AlexxanderX's Tutorials
« Reply #18 on: April 30, 2014, 07:10:46 pm »
Flipping a sprite with the textureRect trick is more than that if x or y is different from 0.
It's actually (x + width, y, -width, height) for horizontal flip, and (x, y + height, width, -height) for vertical flip.

You could also talk about some pros and cons of each method, for example with setScale, if the origin of the sprite isn't its center the sprite will "move".

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: AlexxanderX's Tutorials
« Reply #19 on: April 30, 2014, 08:04:55 pm »
Flipping a sprite with the textureRect trick is more than that if x or y is different from 0.
It's actually (x + width, y, -width, height) for horizontal flip, and (x, y + height, width, -height) for vertical flip.

You could also talk about some pros and cons of each method, for example with setScale, if the origin of the sprite isn't its center the sprite will "move".
Yes, i know if x and y are different from 0 need to add the distance and I will add and some pros and cons.
I thought to add if the x && y != 0, but I don't know why I didn't add it - bad school day I think, but thanks and will take into consideration.
« Last Edit: April 30, 2014, 08:23:07 pm by AlexxanderX »
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: AlexxanderX's Tutorials
« Reply #20 on: May 21, 2014, 09:35:06 pm »
Sorry for not posting for ~2 weeks, but had to learn for final semester exams. Here is my new tutorial: How to create a simple button.
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: AlexxanderX's Tutorials
« Reply #21 on: June 11, 2014, 08:50:49 pm »
Released a new tutorial - How to create a screenshot system :D
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: AlexxanderX's Tutorials
« Reply #22 on: June 11, 2014, 09:09:18 pm »
sf::Keyboard::F5 is probably clearer than 89 ;)

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: AlexxanderX's Tutorials
« Reply #23 on: June 11, 2014, 09:17:51 pm »
Oh, yes, thanks :D
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/