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 - hythron

Pages: [1]
1
Window / fullscreen and mouse position
« on: July 31, 2010, 11:28:24 am »
hey,
When I am switch to fullscreen all graphics become stretched. This is fine.
But the mouse coords are still the same.

So if I run fullscreen a stretched sf::Shape box with an x position of 100px is not   on the exact same location on the screen as GetMouseX() returning 100px.

How can I get the coordinates from stretched graphical objects. Is there some kind of scale value I can use?

2
General / Crash after clear
« on: June 30, 2010, 08:59:09 pm »
Is there a solution or alternative to rotate a sprite and stay fitting?
else I will do the rotation within the image.

3
General / Crash after clear
« on: June 28, 2010, 10:00:42 pm »
It's a decimal float value set to 320, it only occurs when I use sf::Sprite::SetRotation() func.
SetCenter works fine.

4
General / Crash after clear
« on: June 28, 2010, 08:20:17 pm »
The reason because some tiles still did't fit is because I am rotating and set another center to the sprites.
Do you have any clue why this is?

Code: [Select]

sprite.SetCenter(bgTileSize,bgTileSize);
sprite.SetRotation(180);
sprite.SetImage(ImageControl::Instance()->GetImage(BG_TILE_WATER_END));

5
General / Crash after clear
« on: June 28, 2010, 06:38:26 pm »
You are amazing. Only a couple of tiles are wrong but that's probably within my code.
Thank you so much for the quick replies.


6
General / Crash after clear
« on: June 28, 2010, 02:52:54 pm »


its weird because it is just simple code like x=imageWidth*i

7
General / 1.6 draw issues
« on: June 28, 2010, 02:37:54 pm »
thx, that was the problem! project is running again.
but now I am using 1.6 I get draw image issues. I have a scroll map with tiles. every tile have now a transparent border or do not fit well.  is there something changed within the draw/view engine because its not my code because it was fine in 1.5

8
General / Crash after clear
« on: June 28, 2010, 01:47:54 pm »
After reinstalling visual studio 2008 I suddenly get all kind of erros within my project that worked fine before.

first the know crash bug with sf::String. I heard it was fixed in 1.6 but for me it is still there.

when I comment out the sf::String I get another crash after the App.Clear() function. Yes I have used the debug Libraries like sfml-window-b.lib

whyyyyyy  :cry:

Pages: [1]
anything