[quote name='Servant of the Lord' timestamp='1345268296' post='4970744']
Are you wanting to move one object, and then a few seconds later, the next object? Are you wanting a delay/pause in time before each object moves?
Yes, your understand me correctly. But the problem of delay - it`s stoppes all the "game loop", it will just pause for a while all loop, at as a result it would do nothing except of changing the speed of movement.
I`ll explain it in code:
[CODE]while( n <= objects)
SDL_Delay(2000) // the code stoppes for 2 seconds, so the iterations stops too. As a result the 'n = 0' object moves fo "0.02" pixels,
//then stoppes for 2 seconds, and after it another 'n = 1'object moves for "0.02" pixels and stoppes.
[quote name='Goran Milovanovic' timestamp='1345267116' post='4970735']
[quote name='iQuality' timestamp='1345257092' post='4970722']
that will move in column one after another
I think this part needs to be explained in a little more detail.
If you want to "see" anything move, you'll have to render your scene after every single displacement. Also, it might help to position your objects in different locations; Right now, they're all initialized to the exact same values, so x and y are set to 0 and 200, respectively.
Yes, with rendering scenes all correct, the problem is with movement objects, like Goran Milovanovic says, I need a delay after all of my objects.
In another word, i`m making like simple "tower defence game", and i need to generate my enemies, that will move in column, without collision.