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

Pages: [1] 2 3 ... 6
1
General / Precompiled SFML 1.6 for 64 Bit Windows
« on: November 30, 2011, 12:04:51 pm »
compiling yourself isn't that hard. you have to compile your own projects don't you? same same.

2
Window / Switch RenderWindow from Windowed<->Fullscreen (v1.6)
« on: November 30, 2011, 11:47:25 am »
Not sure if this will fix what you described.

The way you are processing the input is by checking if the keys are currently pressed. If this code is being called every iteration of a loop (say 60 times a second), then the if statement will be entered say, 30 times if you hold the buttons down for half a second.

Instead what you should do is window.PollEvents(), and look for a KeyPressed event for sf::Key::Return, and && with window.GetInput().IsKeyDown(sf::Key::LAlt)

3
General / Installing on Mac (Xcode)
« on: November 30, 2011, 11:41:52 am »
I just checked all the links in my post. They all work.

If you are talking about this bit here, which turns out to have become a link without me adding url tags,

Quote from: "sbroadfoot90"

$ cd ~
$ git clone https://github.com/SFML/SFML.git


this is not meant to be clicked on, this is something you type into your terminal to clone the git repository.

The clone in mac button should come up if you are using a mac, if it doesn't come up, just clone using the command line using the two commands I just quoted.

4
Window / Need Help!!!
« on: November 27, 2011, 12:06:03 am »
Also change the subject of your post. It's really not helpful to those who may be able to help you and to those browsing the forum after you

5
Graphics / filling the window with a texture
« on: November 25, 2011, 09:46:01 pm »
Can you use proper variable names? Maybe then you can work out what is wrong. Using a one or two letters or temp for variable names makes your code really difficult to read and subsequently you aren't able to track the logic of your code properly.

As far as I can see, whatever X is, after the first time the inner loop completes, temp will be X*50. This is probably off the screen.

Also, you don't use zm at all.

Next time, you can simply output the value of the variables used in the line that "doesn't work" for you just before they are used. Eg

Code: [Select]

cout<< temp << endl;
spr[0].SetPosition(0,temp); //it isn't working!


Either that, or use a debugger.

6
Graphics / Can't figure out 'undefined reference'
« on: November 25, 2011, 09:38:04 pm »

7
Graphics / New SFML rendering API
« on: November 25, 2011, 12:29:34 pm »
Quote from: "slotdev"
Thanks for all your work guys, you're amazing :D


Exactly who is on the SFML team apart from Laurent and Marco?

8
General / How to reset Pong ?
« on: November 25, 2011, 03:26:41 am »
Calling Clear on a RenderWindow just clears the screen. Read the documentation.

9
Window / IsKeyPressed Segfault
« on: November 24, 2011, 10:45:23 pm »
put OS X in the subject.

10
Window / [SOLVED]Need sf::Clock to be more specific
« on: November 23, 2011, 09:43:36 pm »
There's nothing much to floats (that's sort of a lie). For your purposes, think of a float as something that can store a decimal number to about 8 significant figures. A double can store about 16 significant figures.

11
SFML projects / Aphid (Scrolling shooter)
« on: November 23, 2011, 12:38:55 pm »
Hey man, scripting languages constitutes as real programming. You don't have to be using a strongly typed, compiled language to be considered a real programmer.

12
General / Renderwindow displayed in function disrupts the game.
« on: November 23, 2011, 12:30:16 pm »
This is not a bug in SFML, you just haven't coded it right. On each frame you should clear the window and redraw everything. You shouldn't just play an animation in a separate function, instead at each frame, update each animation as you see fit, then draw everything again in its current state.

Try Nexus's Thor library, it has a nice animation class.

13
General / Installing on Mac (Xcode)
« on: November 22, 2011, 10:30:47 pm »
Thanks for your lovely post phalanx! Your explanation is quite good and nicely laid out :)

14
General / mouse click on moving animation problem
« on: November 20, 2011, 11:38:44 pm »
your if statement is wrong

Code: [Select]
if((input.GetMouseX()>=Tr.x && input.GetMouseX()<=Bl.x) && (input.GetMouseX()>=Bl.y && input.GetMouseY()<=Bl.y))

and by putting this in the loop

Code: [Select]
           topLeftCorner=BALLOONS[loop].GetPosition();
            bottomRightCorner.x=topLeftCorner.x+50;
            bottomRightCorner.y=topLeftCorner.y+65;


you are overwriting the values each iteration of the loop.

I can't help you much more than that because you have only included two snippets of your code that don't even seem to go together (is Tl short for topLeftCorner??)

15
General / I'm becoming insane
« on: November 20, 2011, 11:29:26 pm »
Make your subjects a bit more helpful when you post

Pages: [1] 2 3 ... 6
anything