# How differently?

**URL:** <https://discourse.libsdl.org/t/how-differently/15229>\
**Category:** SDL Development\
**Created:** [April 2, 2008, 5:49pm UTC](https://discourse.libsdl.org/t/how-differently/15229 "2008-04-02T17:49:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krzysztof\_Posluszny](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@Krzysztof\_Posluszny](https://discourse.libsdl.org/u/Krzysztof_Posluszny)\
**Post date:** [April 2, 2008, 5:49pm UTC](https://discourse.libsdl.org/t/how-differently/15229/1 "2008-04-02T17:49:15Z")

</div>

HI! I ask to write me how it it was been possible to write following  
functions so in order to she made the same differently but without use  
SDL\_Flip(80). I’m sorry behind my English.

int kolysanie\_statkami()  
{  
ball[0]=IMG\_Load(“czaszka.bmp”);  
ball[1]=IMG\_Load(“czaszka.bmp”);

```
    while(pl==false)
    {
   for(int i=0;i<=50;++i)

    {
        apply_surface(++i, 40, ball[0], screen );
        apply_surface(++i+80, 40, ball[1], screen );
        //Szybkosc ko?ysania
        SDL_Delay(80);
        SDL_Flip(screen);
    }
     for(int j=50;j>=0;--j)

    {
       apply_surface(--j, 40, ball[0], screen );
       apply_surface(--j+80,40, ball[1], screen );
       //Szybkosc ko?ysania
        SDL_Delay(80);
       SDL_Flip(screen);
    }

 }

```

}

---

<div class="post-metadata">

**Author:** ![atrix2](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@atrix2](https://discourse.libsdl.org/u/atrix2)\
**Post date:** [April 4, 2008, 5:50am UTC](https://discourse.libsdl.org/t/how-differently/15229/2 "2008-04-04T05:50:24Z")

</div>

Hi!

Are the balls too fast?

Or does it flicker and flash?\> ----- Original Message -----

> From: [sdl-bounces@lists.libsdl.org](mailto:sdl-bounces@lists.libsdl.org) [mailto:sdl-bounces at [lists.libsdl.org](http://lists.libsdl.org)] On  
> Behalf Of krzysztof posluszny  
> Sent: Wednesday, April 02, 2008 10:49 AM  
> To: sdl at [lists.libsdl.org](http://lists.libsdl.org)  
> Subject: [SDL] How differently?
> 
> HI! I ask to write me how it it was been possible to write following  
> functions so in order to she made the same differently but without use  
> SDL\_Flip(80). I’m sorry behind my English.
> 
> int kolysanie\_statkami()  
> {  
> ball[0]=IMG\_Load(“czaszka.bmp”);  
> ball[1]=IMG\_Load(“czaszka.bmp”);
> 
> ```
> while(pl==false)
> {
> for(int i=0;i<=50;++i)
> 
> {
> apply_surface(++i, 40, ball[0], screen );
> apply_surface(++i+80, 40, ball[1], screen );
> //Szybkosc ko?ysania
> SDL_Delay(80);
> SDL_Flip(screen);
> }
> for(int j=50;j>=0;--j)
> 
> {
> apply_surface(--j, 40, ball[0], screen );
> apply_surface(--j+80,40, ball[1], screen );
> //Szybkosc ko?ysania
> SDL_Delay(80);
> SDL_Flip(screen);
> }
> 
> }
> 
> ```
> 
> }
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Krzysztof\_Posluszny](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@Krzysztof\_Posluszny](https://discourse.libsdl.org/u/Krzysztof_Posluszny)\
**Post date:** [April 5, 2008, 10:00am UTC](https://discourse.libsdl.org/t/how-differently/15229/3 "2008-04-05T10:00:48Z")

</div>

This is not most important I dissolved problem into different way already.  
Thank you
