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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DevilBlackDeath

Pages: [1]
1
Graphics / Sprite positioning problem with Scale() method
« on: April 08, 2011, 08:43:02 pm »
Hi everyone,
Well, I started SFML some months ago now, and I use it in two different contexts, for school and for home! At my computer science university, we have SFML 1.3 installed(on Debian), and  at home I use version 1.6(on Ubuntu 10.10). Here is the problem I'm facing, I'll take a simple example I tested :
Under SFML 1.6 : I create an image that I attribute to a sprite set at (0, 0) position, then I scale it at (20, 1). From there, the sprite is totally away of where he should be, he's not at (0, 0) anymore, the move is proportional to the scaling or even exponential(couldn't figure it out). And, I think that is evident, no scaling doesn't move it at all. I disabled smoothing on Image, so it can't come from artifacts, and this happens wherever I decide to put the sprite  :|
Under SFML 1.3 : No problem, the scaling is done, the sprite is at the right place on screen  :shock:

I'd really like to be able to get through this because I plan to use it to make sizeable slide bars(center image is scaled whereas side buttons are not).

I'm looking forward to your answer.
If you need a sample code, ask me, and I'll post it.

A nice day to everyone ;)

Pages: [1]
anything