Welcome, Guest. Please login or register.

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

Pages: [1] 2 3 ... 14 Next
1
General / Re: Game Physics
« on: Today at 07:27:19 am »
Oh sorry. Not acceseration, but speed.
For example i have gravity acceleration 1000.0f, so if player jumps - I just set his speed.y to -375

2
General / Re: Game Physics
« on: December 15, 2017, 08:02:21 pm »
Hello, I am trying to make a platforming game, I have all of the other physics set up BUT jumping.
To put it simply , I want to know how to make an entity go up for a little bit then down.
               
 

just set acceleration to -<jump power>

3
General / Re: TDS Shooter Enemy Programming issues
« on: December 15, 2017, 06:37:47 am »
just make them not to overlap. use collision detection etc.

4
Audio / Re: Program crash when opening music
« on: December 11, 2017, 02:47:08 pm »
Quote
I have a void where I start the music.

what do you mean? show the code

5
SFML projects / Re: Neural Network + Genetic Algorithm
« on: December 09, 2017, 05:57:15 am »
Nice! If you like that can of things, you can have some fun with particle swarm optimization (PSO) as well.

Thank you :) Yep, maybe some time later.

6
Graphics / Re: Screen only displays movement when mouse is moving
« on: December 07, 2017, 03:04:06 pm »
Okay! I have a source formatting plugin for code blocks IDE. first I'll use my format then i will use the formatting plugin when I release  it or ask for help.
Also, Is it impossible for you to answer my question because of its format it!?

I already answered your question in my first post here. I've posted your wrong part and fixed part

7
Graphics / Re: Screen only displays movement when mouse is moving
« on: December 07, 2017, 02:43:33 pm »
Well, I kinda use my own style format like this
void see this(args){if(6==7){
}
}
 
And yes I've looked at other projects it get confusing sometimes in their format

You can't find this error by yourself only because this kind of formatting.

8
SFML projects / Re: Neural Network + Genetic Algorithm
« on: December 07, 2017, 07:44:07 am »
Impressive stuff, Alexander!

Thank you, Stefan  :)

9
Graphics / Re: Screen only displays movement when mouse is moving
« on: December 07, 2017, 06:03:53 am »
Why do you write code like this? Have you ever took a look at code formatting on some other projects?

window.close();}
playerRect.move(1,0);
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Down)){playerRect.move(0,1);}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Up)){playerRect.move(0,-1);}
if(playerRect.getGlobalBounds().intersects(targetrect.getGlobalBounds())){window.close();}}

window.close();}}
playerRect.move(1,0);
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Down)){playerRect.move(0,1);}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Up)){playerRect.move(0,-1);}
if(playerRect.getGlobalBounds().intersects(targetrect.getGlobalBounds())){window.close();}

10
SFML projects / Neural Network + Genetic Algorithm
« on: December 06, 2017, 02:23:09 pm »
After watching a lot of videos on YouTube I had some fun playing with neural networks + genetic algorithm. Don't know what else to say  :D

Source code: https://github.com/achpile/neural




11
SFML projects / Re: Screenshot Thread
« on: November 30, 2017, 10:22:51 am »
Some workarounds on new game

12
Graphics / Re: TileMap show artifacts
« on: November 27, 2017, 04:46:19 pm »
that's because you have some errors in your code

13
General / Re: Static Linking SFML with MinGW in Eclipse
« on: November 25, 2017, 05:02:08 pm »
Maybe some lines from my CMake file could help :)

        SET ( CMAKE_CXX_FLAGS  "-DSFML_STATIC -s -std=c++11" )
        SET ( CMAKE_EXE_LINKER_FLAGS  "-mwindows -static-libgcc -static-libstdc++ -static -Wl,-Bstatic -Wl,-rpath,./lib/" )
        SET ( CMAKE_LINK_LIBS sfml-audio-s sfml-graphics-s sfml-window-s sfml-system-s winmm opengl32 gdi32 freetype glew jpeg opengl32 openal32 pthread FLAC vorbisfile vorbisenc vorbis ogg sndfile )
 

14
Thank you for the advice.I guess?
But I already knew that and I'm currently studying this library.
And how does that answer my question?

So if you already knew that - why don't you do that? You call display only on getting resize event

15
you should draw and display inside the main loop every time, not only in events handling.

Pages: [1] 2 3 ... 14 Next
anything