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

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>

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.

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

what do you mean? show the code

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.

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

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.

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

Thank you, Stefan  :)

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?



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

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

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

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 )

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

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

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