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

Pages: 1 ... 217 218 [219] 220 221 ... 225
3271
General / Re: Problems with ctime when including Audio
« on: February 17, 2014, 03:40:11 am »
we can get the thing to build if we first create a new project with only SFML and then import the rest of our code
Why not just do that then?

3272
Graphics / Re: Check if draw over something
« on: February 17, 2014, 03:37:20 am »
This is certainly not complete and minimal code :(

You said that the Tower class does nothing. The towers vector is instances of Tower. You check the bounding box of the towers vector. This means that you are checking the bounding box of nothing.

3273
Graphics / Re: Check if draw over something
« on: February 17, 2014, 03:09:10 am »
I don't understand your problem/question. Sprites don't have .contains methods. It compares a rectangle with a point.

3274
General / Re: Problems with ctime when including Audio
« on: February 17, 2014, 03:01:58 am »
I don't think this is a problem that is related to SFML.
However, I'd try:
std::clock_t time
instead of:
clock_t time

Would help next time if you posted some code :P

3275
Graphics / Re: Shader is running really slow. Not sure what it is.
« on: February 17, 2014, 02:57:39 am »
I run this code without any alterations and it was saying that I was getting around 300 FPS  :o

3276
Audio / Re: Applying echo effect using sfml audio
« on: February 17, 2014, 02:42:25 am »
Replaying the sound buffer in more sound objects is one possible way of doing it (and probably the easiest). You could also mix the echo into the sound buffer itself (either externally, or internally - real-time or not).

Since you tried the former method, could you tell us what exactly you call a fail?

3277
SFML website / Re: maybe tone down the white background a bit
« on: February 15, 2014, 10:38:33 pm »
White is a perfectly acceptable background for text (especially black text). If your monitor is displaying whites that are too bright for you, you should set up your monitor. Try warm tones  ;)

3278
Graphics / Re: Drawing sf::Text in nested loop
« on: February 15, 2014, 09:19:06 pm »
You should remove code that isn't a part of your problem. It should be complete and minimal. This is certainly not minimal, and - since it doesn't compile - I'd say it doesn't count as complete either.

EDIT: I commented the two external requirements (cLander.h and cSurf.h), and replaced the font filename with one I have and it works fine. It's possible that your font is failing to load. If you didn't use "FreeConsole", you would've seen that :P

3279
Audio / Re: Sf::Sound for music
« on: February 15, 2014, 09:02:25 pm »
I'm currious as to why sf::Music couldn't be used???
...a reason i can't explain here...
Sounds ominous, doesn't it?  ???

3280
General / Re: Vector of projectile sprites problem
« on: February 13, 2014, 11:34:55 pm »
Ok, so I've done that and I've gave to documentation a good seeing to but none of it seems to have remedied the visual artifacts seen in the second screenshot.
I have to ask. Are all three (clear, draw, display) now outside of this conditional:
if(clock.getElapsedTime().asMilliseconds() >= updateRate)
{
}

3281
Graphics / Re: [Beginner] Help with Bouncing Circles
« on: February 13, 2014, 11:30:45 pm »
You could also use negative outlines where it goes into the fill.
Good Idea! Didn't know that this is possible :)
It's all here:P
I'd forgotten about this, actually. I got mixed up with line drawing which expands from the centre  ;D

EDIT: fixed the link. Thanks to Giblit for pointing out the error  :)

3282
General / Re: Vector of projectile sprites problem
« on: February 13, 2014, 09:51:21 pm »
I'm only calling window.display() once every update as it seems pointless to call it if nothing has changed.
You should be, on every loop, be calling clear, draw, and display. Get used to it; it works wonders  ;D

3283
General / Re: Vector of projectile sprites problem
« on: February 13, 2014, 08:59:34 pm »
In fact, you should call clear, display, AND draw each time (in order: clear, draw, display), regardless of whether the clock is telling you to update the position.

3284
Graphics / Re: [Beginner] Help with Bouncing Circles
« on: February 13, 2014, 08:56:33 pm »
And I thought It couldn't get more complicated anymore... ;)
I did say that the more accurate you want it, the more involved it becomes  ;)

3285
Window / Re: OpenGL Context Flashes on Screen when Created
« on: February 13, 2014, 05:11:25 pm »
Could you post a complete and minimal piece of code that you still have the problem with? Then, other people can test it.

Pages: 1 ... 217 218 [219] 220 221 ... 225
anything