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

Pages: [1]
1
Graphics / Re: Replacing one color with another color in a texture
« on: October 19, 2015, 01:29:52 am »
Cool thanks!

Also I don't like making my sprite sheets with a transparent background. I don't know why. Anyways thanks again

2
Graphics / Replacing one color with another color in a texture
« on: October 19, 2015, 01:14:13 am »
Hello!

I want to know if there is a way to replace one color with another in a texture. so for example say there is a texture that has a pink background which is meant to be replaced with a transparent color. Is this possible in SFML? I really don't want to use the getPixel() and setPixel() for the sprite.

3
All transformations are applied relative to the origin. If you set the origin to the top left corner (default) your rectangle shape will rotate around the top left corner. If you set the origin to the middle of the rectangle shape it will rotate around its center.

As such the origin is local to an object and if you "copy" the origin of another rectangle shape, you'll just copy the local origin. If you want to rotate around another object, you need to use the global position instead:

rect2.setOrigin(rect.getPosition));

This did work but it sets rect2 far from the rect1
If I try to move it closer to rect1 also moves rects2 orgin

4
I want to be able to rotate a rectangle using another rectangles origin
So I thought I would have to do this:

rect2.setOrigin(rect1.getOrgin());

But that made rect2 rotate differently.
Any help?

5
Window / Re: Window resolution
« on: July 04, 2015, 10:21:11 pm »
No. But you can set the size of the view smaller than the size of the window, so that it sort of looks like the resolution is lower.

How would I do this?

6
Window / [SOLVED] Window resolution
« on: July 04, 2015, 09:57:51 pm »
Hello!

I want to know if there is way to set the window to a size (say 900x600) and make the resolution of the window lower than its size. Thanks!

7
General / [SOLVED] Error with running c++ program
« on: July 02, 2015, 03:26:23 pm »
Hello!

I want to use SFML but when I try to run my c++ program it says the following:

Error   1   error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

I don't know how to fix this. I am using VS 2013.

Pages: [1]