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

Pages: [1]
1
General / [Solved] question
« on: December 17, 2009, 07:35:00 pm »
You don't call sf::Window::GetEvent() ?

2
Graphics / sf::Image::bind()
« on: December 15, 2009, 05:56:12 pm »
Actually, It binds the image exactly like the way you would do with pure OpenGL. It's just flipped vertically.

Somehow, it strangely don't work anymore on SFML2 svn (or it's just me who's missing something)

3
Graphics / [SOLVED] Little bit of trouble with loading from memory.
« on: December 10, 2009, 12:00:29 am »
You could post also the reading function...

If ever you're using C++ take a look at this : http://www.sfml-dev.org/wiki/fr/tutoriels/formatdat.The explanations are in french, yet it is well commented in english so you can count on it ;)

4
General discussions / SFML Scaling
« on: December 08, 2009, 07:59:50 pm »
Nope, actually, SetCenter makes all the differences.
So you can just replace things like :
Code: [Select]
rectangle.SetScale(newScale);
rectangle.SetPosition(mouseX - rectangle.GetSize().x / 2, mouseY - rectangle.GetSize().y);
with
Code: [Select]
rectangle.SetCenter(rectangleSizeX/2, rectangleSizeY);
rectangle.SetScale(newScale);
rectangle.SetPosition(mouseX, mouseY);

and you shall move your character just like it was only a point on the screen :) (yet collisions shall work properly too with not many calculations)

5
Graphics / Creating sprites with different levels of transparency
« on: December 08, 2009, 07:43:59 pm »
Save it as a 32-bit PNG (24-bit may work either but I cannot garentee)

Pages: [1]
anything