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

Pages: [1]
1
General / SFML Visual Studio DLLs
« on: September 04, 2018, 08:58:46 pm »
When I run an SFML project in Visual Studio 2017, it loads a bunch of dlls I never included. Does anyone else have this problem or know what might be going on?
Thanks.

2
Audio / Re: Sometimes Audio not loading
« on: July 31, 2018, 02:24:07 pm »
Are you using a .wav file? They have problems for me, .ogg seems to work fine.

3
General / Re: player.move() sends player into wal
« on: July 18, 2018, 06:14:24 pm »
When the player hits a wall, make them move away from the wall by a small amount (like 1 pixel).

4
General / Re: SFML Keybinds
« on: July 18, 2018, 06:07:46 pm »
Hapax what about mouse or joystick events?

5
General / Re: SFML on Raspberry PI
« on: July 17, 2018, 03:44:01 pm »
You could just install linux on it; SFML supports linux.

6
General / Re: Black screen showing after running program.
« on: July 17, 2018, 03:42:40 pm »
Maybe you setup SFML wrong.
Does it give you any errors?
Have you tried any other code?

I think your code is ok...

7
General / Re: Image wont load
« on: July 17, 2018, 03:39:40 pm »
Is the image in the SFML folder?

I use this code:
sf::RectangleShape shape(sf::Vector2f(10.0f, 10.0f));
sf::Texture texture;
texture.loadFromFile("imageName.png");

 

8
General / Re: SFML Keybinds
« on: July 17, 2018, 03:29:41 pm »
Wow, thanks for the quick replies, guys!  :)

verdog, I was thinking something like what you mentioned. Do you know how to save the button they pressed?


9
General / SFML Keybinds
« on: July 16, 2018, 09:41:06 pm »
Hello, I am making a game and want to add custom keybinds (like in Zloxx II, except with gamepad support).

Currently, I have the game working with my gamepad, but I want users to be able to make it work with custom controls/gamepad.

Thanks in advance.

10
Graphics / Cannot center text on screen in sfml 2.5.0
« on: June 16, 2018, 12:01:40 am »
How do I center text on the middle of the screen in sfml 2.5.0?

I have tried things like:
        text.setOrigin(text.getLocalBounds().width / 2.0f, text.getLocalBounds().height / 2.0f);
        text.setPosition(screenWidth / 2, screenHeight / 2);
 
But it is just slightly off.

Pages: [1]