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.


Messages - Don Andy

Pages: [1]
1
Graphics / Sprite blurry
« on: June 07, 2008, 01:22:50 am »
Aah, thanks a bunch.

2
Graphics / Sprite blurry
« on: June 06, 2008, 09:24:53 pm »
Well, I did it like it was described in the tutorial :/
If there is a way to keep a constant framerate and use a technique of movement that does not stretch and blur my sprite I'd gladly take it.

3
Graphics / Sprite blurry
« on: June 06, 2008, 08:10:27 pm »
Sorry if I sound stupid or anything, but can anybody tell me what I'd need to do with
Code: [Select]

if (Window->GetInput().IsKeyDown(sf::Key::Left)) Sprite.SetLeft(Sprite.GetLeft() - 100 * Window->GetFrameTime());


to make it work with integers? I think I've pretty much tried every possible combination of typecasts, but this isn't quite working as I want it to >.<

4
Graphics / Sprite blurry
« on: June 06, 2008, 04:55:12 pm »
Quote from: "Laurent"

In this case, using integer coordinates should solve the problem.


Uhm, yeah, that's the thing. I've gotten a bit rusty with C++ and wanted to get back into the whole thing with the help of SFML.

Do I need to rewrite the sprite class to use integers instead of floats?

It's probably something incredibly simple again <.<

5
Graphics / Sprite blurry
« on: June 06, 2008, 03:42:28 pm »
Since I'm working on a rather small pixel-scale, sharpness is very important, so I already set "SetSmooth" on false for the image.

However, when moving the thing around with
Code: [Select]
if (App.GetInput().IsKeyDown(sf::Key::Left)) spr_hero.SetLeft(spr_hero.GetLeft() - 100 * ElapsedTime);

It often gets blurry and stretched, depending on how it stops. I think this has something to do with the positioning using floats. I'm not sure how to fix it, though and would appreciate any help.

Pages: [1]
anything