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

Pages: [1]
1
Graphics / Playing .avi et c with SFML
« on: November 29, 2010, 03:35:59 pm »
Haha i know how the SFML-stuff works cause its pictures and stuff(in the tutorial for setup) haha.
Now it spamms "Use this header only with Microsoft Visual C++ compilers" after i followed ure reply :) - Haha.

2
Graphics / Playing .avi et c with SFML
« on: November 28, 2010, 05:27:47 pm »
Yea. Im using Win 7 32.

Also im using codeblocks.
One thing. How do i tell codeblocks where to look for them?(.dll)
Only in linker settings? or only serc directorys?
Aswell do i need to include it in my project as in other linker options?


And do i only need that share dev? dont i need anything else? since alot of tutorials say "Eey u need this. And this". Like in ure tutorial ;)

Yea. Linux is awsome with this crap.
But. Im forced to work in windows atm so and i rly need this to work.

3
Graphics / Playing .avi et c with SFML
« on: November 28, 2010, 01:35:45 am »
Hey.

I have gone trought tons of tutorials on how you can play .AVI movies etc
with SFML. But all of them wants me to use FFMPEG.
So my questions is:

- Is it possible to use anything else than FFPEG? And how?


- If FFPEG is a must. How the f*** do i install it all? - Geeks can't make any good tutorials. Its like walking into a wall everytime you try to read a tutorial.

And how come do SFML dont have a simple video codec? Its just dumb.

<3 Love.

4
General / Multithreading
« on: September 04, 2009, 10:53:36 pm »
never mind xD found it now.

5
General / Multithreading
« on: September 04, 2009, 10:45:07 pm »
Ive heard that SFML have some sort of support for multithreading.
Does anyone know anything about this?

6
Audio / Cant load any music-files
« on: July 20, 2009, 09:10:50 am »
*feeling dumb* ty haha!

7
Audio / Cant load any music-files
« on: July 20, 2009, 01:27:22 am »
Code: [Select]
   sf::Music Music;
    if (!Music.OpenFromFile("X.mp3")){}
    Music.Play();



My console says:  Failed to open "X.mp3" for reading
Failed to play audio stream : sound parameters have not been initaialized <call initialize first>


This was working on XP but not on my vistacomp

>.< Ty for any help.

8
General / Gods help!
« on: July 19, 2009, 11:18:07 pm »
Ty alot! :o <3

9
General / Gods help!
« on: July 19, 2009, 10:17:08 pm »
Hi. Im used to SFML 1.2 and updated my verision to 1.5 today and i dunno if this is one major bugg or just my code.

This is a labbingcode for a project im doing in school so dont lol at the code.


Code: [Select]
 while (App.IsOpened())
    {
        // Handle events
        Event Event;
        while (App.GetEvent(Event))
        {
            // Window closed or escape key pressed : exit
            if ((Event.Type == Event::Closed) ||
               ((Event.Type == Event::KeyPressed) && (Event.Key.Code == Key::Escape)))
            {
                App.Close();
                break;
            }
        }
        if (App.GetInput().IsKeyDown(Key::Left))
        {
            hero.move_x(-1);
            my_room.move_x(2);
        }
        if (App.GetInput().IsKeyDown(Key::Right))
        {
            hero.move_x(1);
            my_room.move_x(-2);

            if(hero.avatar->x == 300)
            {
                for(int i=hero.avatar->x;i!=0;i--)
                {
                    hero.move_x(-1);
                    my_room.move_x(-2);
                    //Sleep(0.1);
                }
            }
        }

        my_room.display(&App);
        hero.display(&App);
        App.Display();
        //i++;
    }

    return EXIT_SUCCESS;
    return 0;
}


void room::display(RenderWindow * App)
{
    App->Draw(wallpaper->my_picture);
}

void room::move_x(int value)
{
    wallpaper->x += value;
    wallpaper->my_picture.SetX(wallpaper->x);
}



void character::display(RenderWindow * App)
{
    App->Draw(avatar->my_picture);
}

void character::move_x(int value)
{
    avatar->x += value;
    avatar->my_picture.SetX(avatar->x);
}



Simpley i have two pictures one in the background and one character over it. When heros x reaches 300 it will loop down(like in megaman)
But after the loop had done his work ive now got two heroes on the screen. Is this something common? + the pictures is moving and stuff when the second hero appears.

Pages: [1]
anything