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

Pages: 1 2 [3]
31
Graphics / animation?
« on: September 03, 2015, 04:49:23 am »
I watched CodingMadeEasy's tutorial on sprite sheet animation, but I don't really get it, so I googled it, and there are many different ways to animate a sprite, and I'm wondering how exactly you would go about this, all of my sprite sheets I have made are 32x32 pixels (per frame), and are only 1 row going from left to right, how would I go about animating them and setting a speed at which they are animated?

32
General / Re: HELP PLEASE!!! BIG ERROR
« on: September 02, 2015, 12:10:46 am »
THANK YOU SO MUCH!!!!

33
General / Can't open Graphics.hpp
« on: September 02, 2015, 12:01:10 am »
I saved last night with a clean compile, woke up this morning, with errors all over my code, I tried to compile, and it said it couldn't open my Graphics.hpp, or any other header files, and I cant remember how I did the linker, please help!

34
General / Re: Building mechanic?
« on: August 31, 2015, 11:42:01 pm »
what I want to accomplish is put down some resources, and a timer for my player to build, the other junk happens, I'm wondering how I could impliment some sort of a grid, I think I know how to do the rest, but I have only the slightest idea of how to do a tile grid.

35
General / Re: Building mechanic?
« on: August 31, 2015, 07:10:36 pm »
I have an idea of where to start, I posted that in the original at the top, I'm just wondering if anyone has any other ideas?

36
General / Re: Building mechanic?
« on: August 31, 2015, 06:53:20 pm »
The best example I could give would be something like terraria or 2d Minecraft

37
General discussions / Looking for work?
« on: August 31, 2015, 02:26:37 pm »
Who thinks it would be a good idea for them to add a looking for work area to the forum for those looking to make something with SFML?

38
General / Building mechanic?
« on: August 31, 2015, 02:23:32 pm »
I have googled this issue a few times, and I can't come up with an idea, but i want to figure out how to make a block building mechanic in 2d, I think you could have like a sprite spawn at a players position+1 or something, but not exactly sure about it, so help would be greatly appreciated. Also I will not be able to reply to this too much, because i am at school, so. Yah thx in advance!!

39
Graphics / Re: If with window.draw
« on: August 31, 2015, 12:14:21 am »
int pause4BAG = 0;
if (sf::Keyboard::isKeyPressed(sf::Keyboard::I)){
               pause4BAG = 1;
//this also opens up my inventory screen and other such things
   if (Slot1 == 1){
                  window.clear();
                  window.draw(BAG);
                  window.draw(item);
                  window.display();
               }
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)){
         pause4BAG = 0;
      }
if (pause4BAG == 0){
         window.clear();
         window.draw(Background);
         window.draw(playerImage);
         window.display();
      }
I could explain a bit more, but if you have any questions about my solutuion please feel free to email me.

40
Graphics / Re: If with window.draw
« on: August 30, 2015, 09:05:11 pm »
I have fixed the problem, created another where is flashes for a milisecond, and fixed that with an int, and thank y'all for the fast responses, I expected to get a reply in a few hours, not a few minutes.
If I have any future issues, I will be sure to post to this forum because you guys ROCK!!!

41
Graphics / Re: If with window.draw
« on: August 30, 2015, 08:53:59 pm »
      window.draw(Background);
      window.draw(playerImage);
      window.display();
      window.clear();
is the order I have them in now, and my if statement is farther up in my code, if need be I can post all my code, but it would problably be messy.

42
Graphics / If with window.draw
« on: August 30, 2015, 08:36:35 pm »
I'm having an issue, I'm trying to make an inventory screen, and when the player presses "I" I want the window to show me their inventory, and pause the game, I have done this:

         if (sf::Keyboard::isKeyPressed(sf::Keyboard::I)){
            window.draw(BAG);
         }
//BAG is inventory screen;
I get no compile errors, and my game runs, but, It just displays without me pressing "I", "I" does nothing.

P.S. I've only been learning SFML for about a week now, so please don't be angry if I made a newbish mistake.

Pages: 1 2 [3]