Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 03 Jan 2012
Offline Last Active Jun 04 2012 02:39 PM

Topics I've Started

How to set drawing bounds for a sfml tiled map loader

11 March 2012 - 05:48 PM

How would I set drawing bounds for this tiled map editor...

This is the example that was in the readme 

I'm not sure what to put in for "somesfview"

How to read a tiled map editor file

04 March 2012 - 11:01 AM

I recently started using Tiled Map Editor and I'm not sure how to get my program to read the map file. I'll be using sfml with tiled. So if anyone out there can explain this as thoroughly as possible it would really help me out. Also, if you want to through in some extras such as characters with sfml/tiled(I can get a character implemented in sfml but i'm not sure how to do it in tiled), map properties(collisions, etc.), and basic side scrolling. Thanks guys.

Advice for 2d level design in SFML

20 February 2012 - 12:51 PM

I'd like to learn more about 2d level design. I've done some simple 2d games but i'm looking to get a little more complex in the future.
1. What is the best way to load and draw all of my sprite into my map.
2. How would i make a side-scroller (Isn't something about changing the sf::View)
3. What are the purposes of level editors and how do they work.
4. Anything else i should know.

I know i don't know nearly as much as i should, but that's why i'm here. :)

How to see if two sprites are intersecting in SFML

10 February 2012 - 07:26 PM

What would be the easiest way to have a sprite bounce off another sprite when they intersect.
would it be to find the corners of the sprite and setup an if statement or does sfml offer another way to do this?
I've been stuck on this for awhile now so thanks for your help.

SFML Pong Help

04 February 2012 - 08:50 PM

I need some advice for a loop in my pong game.
#include "Play.h"
void Play::Show(sf::RenderWindow& window3)
    sf::Event GEvent;
    //load background image
    sf::Image image4;
    //load grey bar
    sf::Image image5;
    //setup grey bar
    sf::Sprite GBar(image5);
    //setup background image
    sf::Sprite PlayBack(image4);
    //load paddle
    sf::Image image6;
    //setup paddle
    sf::Sprite ppaddle(image6);
    //load ball
    sf::Image image7;
    //setup ball
    sf::Sprite ball(image7);
    ball.SetPosition(350, 300);
	    int x = GEvent.MouseMove.Y;
		    if(x < 140)
			    x = 140;
		    if(GEvent.MouseMove.Y || GEvent.MouseMove.X)
			    ppaddle.SetPosition(15, x );
The Paddle moves fine, but if the cursor is in certain spots, the sprite will disappear idk why. Is that the right loop to update the game? Also, I need help with ball movement. I like to have the user click for the ball to start moving. I couldn't get the ball to move and I'm guessing i will need a different loop or maybe even a whole new function.Thanks for any advice you can give me.