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.


Topics - Father_Sloth

Pages: [1]
1
General / Delay using Clock
« on: May 08, 2011, 11:49:23 am »
Hey everybody

I've finished my game (almost) and I have one obstacle left. Now if i can fix this everything will work as it is the key to my spawn engine. The goal is to add a ring sprite to the vector every time the clock reaches the delay time constant.

First part at the top of main():
Code: [Select]
// Initialise counter for ring spawn delay

sf::Clock Clock;
float Time = Clock.GetElapsedTime();
Clock.Reset();


Second part whilst App is running and player alive:
Code: [Select]
// Spawn Rings

if (Time == DELAY_TIME)
{

// Add ring sprite to the ringSpawn vector

ringVec.push_back(Ring);

// Give that ring a random y co ordiante

spawnIterator->SetX(0);
spawnIterator->SetY(rand_Y);

// Increment iterator

spawnIterator++;

// Reset the clock

Clock.Reset();


}


Can you see what's going wrong? Xcode produces no errors and I've followed everything in the tutorial.

2
Graphics / White line in Sprite..
« on: May 03, 2011, 07:00:19 pm »
Hey guys

Okay so I've recently started up again with sfml :) and have recently been noticing a slight glitch in my sprites..

So I've got a *really* simple game, in which the player moves around a melon. That's it. I've been using different file formats for the sprite, I've even been limiting my FPS and experimenting with that but still, remaining unsuccessful, have been getting a white line moving up the sprite. I tried taking a screenshot but it happens so fast and only now and again every 30 seconds.

Please can you show me where I might be going wrong :(

 - Simon

3
Network / Mac & Windows playing together?
« on: April 15, 2011, 11:44:35 am »
Hey Everybody

Been a while since I last posted but I'm now working on a top down shooter for me and my friends. Now I have been reading into using sfml's network capabilities and was wondering can me and my friends play together as I'm on a mac and their on windows.

Is there anyway I can do this or is it just not possible?

Thanks Guys

 - Simon

4
SFML website / Improve the search please?
« on: October 31, 2010, 11:04:34 pm »
Hey

I was wondering if you could improve the search, whenever I search things it comes up with the same results. I'm not offering a solution, merely expressing my views :D .

Thanks for reading quite a pointless topic  :roll: .

Simon

5
Graphics / Graphic Help Needed
« on: October 31, 2010, 06:24:52 pm »
Hey

In my Game all that is displayed is a white window. Could it be to do with my background?

Thanks

Simon

p.s. If i need to provide the code I'll post - just didn't want to bug up the thread.

6
General / Xcode Compile Help (Screenshots) [SOLVED]
« on: October 29, 2010, 05:49:49 pm »
Hey

I'm trying to compile the basic sfml prgram and it keeps coming up with compile errors. At first it was saying I had all these errors in the code (12 to be precise) and then Priomsrb narrowed it down to I did not locate the headers in the Search path. How do I do this? I keep getting this when I did the search path thing or maybe I'm just doing it wrong:

When i try and fix it:



When I don't:



Many Thanks

Simon

7
General / A few Questions..
« on: October 24, 2010, 09:10:40 pm »
Hey

I'm making a top down zombie shooter, similar to uzf (i love that game btw). Now straight to the point:

1) How can I get the player sprite to face the mouse?

2) how can I get the Zombies to go towards the player?

3) How should I do the maps? Are their any editors that would work best for my needs (medium sized maps with collision and as the player moves, it scrolls.)

Sorry I'm nooby but i'd love to have some help. Thanks in advance.

- Simon

Pages: [1]
anything