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

Pages: [1]
1
Graphics / How do I organize my Tileset based on the Tile Map example
« on: June 03, 2014, 04:47:29 pm »
So I have a Tilemap, and it works... if I am only loading one Tile. As soon as I try to load more than one(Example 1 results in only one, very distorted, tile loading      Example 2 results in crash), it doesn't work.

Here are two ways I thought would work, but aren't for me... any ideas?

Code: [Select]
//Load First Tile
if (!Map.Load("Tile Location", Vector2u(32, 32), Level, 16, 16))
    return -1;

//Load Second Tile
if (!Map.Load("Tile2 Location", Vector2u(32, 32), Level, 16, 16))
    return -1;

Code: [Select]
//Load 1 Tile sheet, 256x256                   //I Have also tried 256, 256 here
if (!Map.Load("Tileset Location", Vector2u(                           32, 32), Level, 16, 16))
    return -1;

2
Graphics / 2D World Questions
« on: June 02, 2014, 04:52:52 pm »
I am a bit confused on how the 2D world loading works...

I have seen a few topics and even some of the documentation kind of points towards the fact that you can load stuff off screen and have the character move around in the world and the view will uncover more of the world; however, when I try to load a sf::Sprite with a map texture, it only covers a corner of the screen.

As I was reading through the Documentation, about views, I noticed it said something about the 2D world, and that the view can move around it, but I don't really understand how to render the "World" do you do that with a texture and sprite or something? Is there a Doc about it someone can point me to?

Additional (Probably useless) info:
    I did create a Tile Map, I get how to do stuff like that, I just don't under stand how I create a Tile Map or something and have it be larger than the screen and the player can move around... I hope any of this makes any sense at all.

3
Graphics / Gve an sf::view a set size?
« on: May 30, 2014, 05:02:43 pm »
I was wondering if it is possible to set the size of a view and when the window is resized, the view does not change with it, I read through the API Doc and googled, and found nothing. I hope this was clear, thanks in advance.

4
Graphics / Tile Map Tutorial Error
« on: May 30, 2014, 03:46:30 pm »
I am getting the following error on several lines when I follow the tutorial for a tile map, at first I thought I might have typed something wrong, but after copying a pasting it, I got the same error.

This is the error:
Code: [Select]
1>LoadMain.cpp(36): warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data

Pages: [1]