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

Pages: 1 2 [3] 4 5
31
Window / Re: two keyboard keys pressed at the same time?
« on: July 23, 2017, 12:39:15 pm »
well...using event for it can be tough but I think it can be done...I'll try to experiment on it

in the mean time
    while (window.isOpen())
    {
            sf::Event eventCheck;
            while (window.pollEvent(eventCheck))
            {
                if (event.type == sf::Event::Closed) window.close();
            }

            if (sf::Keyboard::isKeyPressed(sf::Keyboard::W))
            {
                sprite.move(0, -5);
            }
            if (sf::Keyboard::isKeyPressed(sf::Keyboard::A))
            {
                sprite.move(-5, 0);
            }
            if (sf::Keyboard::isKeyPressed(sf::Keyboard::S))
            {
                sprite.move(0, 5);
            }
            if (sf::Keyboard::isKeyPressed(sf::Keyboard::D))
            {
                sprite.move(5, 0);
            }

            window.clear();
            window.draw(sprite);
            window.display();
    }
return 0;

 

32
Graphics / Re: direction shape faces when rotation is 0
« on: July 15, 2017, 04:51:45 am »
I see...so it is not up...well the whole time I thought it was up ::)

33
Graphics / direction shape faces when rotation is 0
« on: July 14, 2017, 06:11:41 pm »
hi, is the direction of shape (rectangle) upward, left, right, or downward when it has the rotation of zero  ???

34
Audio / Re: Theres an option for speed/tempo?
« on: July 12, 2017, 03:59:33 pm »
ahh...you did what I told you  ;D
altho I cannot provide an answer

35
Graphics / win.pushGLStates and win.popGLStates vs win.resetGLStates
« on: July 10, 2017, 06:09:58 am »
hi so I checked these out because I want to draw with both sfgui and sfml
and with this code nothing is drawn
Code: [Select]
        win.pushGLStates();
        if (option == Option::rectangle)
        {
            win.draw(rect);
        }
        win.popGLStates();
       sfgui.Display(win)

but this one works
Code: [Select]
        win.resetGLStates();
        sfgui.Display(win);
        win.resetGLStates();
        if (option == Option::rectangle)
        {
            win.draw(rect);
        }

full code
https://gist.github.com/Flaze07/7b10a4762523180a0169f49848d648cb

36
General / Re: I dont get sfgui
« on: July 10, 2017, 06:03:23 am »
ah...so indeed the forum is gone (I only said it is gone because of sfgui.sfml-dev.de )

37
General / Re: I dont get sfgui
« on: July 09, 2017, 04:40:32 pm »
ah there's no more problem...in the end I didn't had to build anything and I just link it like sfgui in the linker option

tha being said...
where's the sfgui forum ?????

38
General / Re: I dont get sfgui
« on: July 09, 2017, 04:30:19 pm »
also if I need to make the dll...I think I can use codeblock to do it

39
General / Re: I dont get sfgui
« on: July 09, 2017, 04:15:08 pm »
ah...where's the forum ?? is it in github ??
anyways...what I mean is do I need to make the dll ??
there's already a dll file named sfgui.dll in bin


so do I put this in codeblock's linker settings-link library

sfgui

based on linking sfml experience

40
General / I dont get sfgui
« on: July 09, 2017, 02:59:33 pm »
I dont get the installation...
it said building it only if you want to
yet in the installation page of the wiki it said to build it..

so...does building it means turning it into .dll ?
if so there's already .dll

 ??? ??? ???

oh and I am using codeblock...so...how do I link it...I know how to make it search for the includes...
but stuff like linking

example :
sfml-graphics

how is that done with sfgui

41
Graphics / Re: mouse button press only once
« on: July 09, 2017, 06:00:08 am »
just found a fix  :D :D ;D

Code: [Select]
     while (1)
    {
        if ((sf::Mouse::isButtonPressed(sf::Mouse::Left)))
        {
            if (pressed) continue;
            else
            {
                std::cout << "haha" << i++ << " " << pressed << std::endl;
                pressed = true;
                std::cout << pressed;
            }
            continue;
        }
        pressed = false;
    }

funny how I realized it after looking at my own thread

42
Graphics / Re: mouse button press only once
« on: July 09, 2017, 05:57:31 am »
nvm I see the problem...

43
Graphics / mouse button press only once
« on: July 09, 2017, 05:49:18 am »
hi...I think I have asked more than 2 question in this forum since yesterday...
anyways...
I want to have it so my mouse button received input is not received when it is pressed continuously
I know you can do it with event...but the code where the mouse input received is in another file
so I tried this code...
Code: [Select]
     while (1)
    {
        if ( (sf::Mouse::isButtonPressed(sf::Mouse::Left)) && (!pressed) )
        {
            std::cout << "haha" << i++ << " " << pressed << std::endl;
            pressed = true;
            std::cout << pressed;
            continue;
        }
        pressed = false;
    }
even If I pressed the left mouse button...it didn't continue..I wonder why

44
General / Re: resetting origin over and over
« on: July 09, 2017, 05:32:20 am »
thank you :D

45
Graphics / Re: how does Transform::setOrigin works ?
« on: July 09, 2017, 05:32:10 am »
ah..I see  ;D

Pages: 1 2 [3] 4 5
anything