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

Pages: [1]
1
General / SFML view
« on: December 16, 2014, 06:33:32 pm »
Alright so i am using the SFML view to have the screen centered on top of the players sprite the Yellow is the y coordinate and the Blue is the X  coordinate , now the thing is everything i press the corresponding key such has the up arrow the screen will always move to far in that direction and i have adjusted the numbers to where it moves slower or fast but it dose not help , so is there a way to keep the SFML view always centered with the player sprite , and by view i am talking about the 2d view option http://www.sfml-dev.org/tutorials/2.0/graphics-view.php
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
   {
      Yellow = -200;
      Blue = 0;
   }
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::Down))
   {
      Yellow = 200;
      Blue = 0;
   }
   if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
   {
      Yellow = 0;
      Blue = -3.33333;
   }
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::Right))
   {
      Yellow = 0;
      Blue = 3.33333;
   }

2
General / Creating a game
« on: August 12, 2014, 07:47:01 pm »
Hello all,
I am a new programmer to SFML but i have years of C++ experience, so to start off i am in the process of making a game and i ran across something called  http://www.mapeditor.org/ , so i was wondering if there is any type of code that has been made to work with SFML to be able to use the full function of Tiled such as the layers and collision and such but be able to load that map to the SFML game.   

Pages: [1]