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

Pages: 1 2 3 [4]
46
Graphics / Re: Program Unable to load images
« on: May 07, 2012, 11:53:26 pm »
Code: [Select]
sf::Image PlayerImage;
PlayerImage.LoadFromFile("PlayerImage.bmp");

You dont have to put the full path. And im not sure if the release works if you put there files since it didnt work for me.

But go into: R_Arena\Debug, put in there the picture beside the .exe file and it will load 100%.

P.S.

That is just for loading the image, and not for displaying it.

47
Graphics / sf::Text help, formatting the setString
« on: May 07, 2012, 11:50:14 pm »
My plan is to add a menu listing feature like:

Code: [Select]
text[id].setString(text[id].getString() +  " >"); obviously doesnt work since i wanted to show you what im trying to do.

the ">" what indicate what option is currently selected.

got this, can i somehow add on the ">" sign on the end of text[id] string ?

example: if the string was "car" it would be "car >".

Code: [Select]
void Option::Set_Option (int id)
{
text[id].setString(text[id].getString());
App.draw(text[id]);
}

thx

48
Graphics / Re: Tile system problem
« on: May 06, 2012, 03:25:59 pm »
But doesnt that return the number of pixels instead of the width and height ?

or i have to calculate myself the width and height from the pixels

49
SFML projects / Re: 'Tiled' Tile-map Loader
« on: May 06, 2012, 02:05:08 pm »
Yeah , i would love to see this for SFML 2.0

50
Graphics / Tile system problem
« on: May 06, 2012, 02:02:43 pm »
Hi, im new here.
Since i dowloaded sfml 2.0 im trying to convert "SFML Tiled Map Loader v0.1"  by Walker,
http://en.sfml-dev.org/forums/index.php?topic=3023.0

Its written for sfml 1.6, so the image functions dont work.

Im trying to convert everything that was loading to images, to load to textures.

First problem i cant change: GetHeight() and GetWidth() since they got removed in 2.0? or they dont exist for textures.


Thx.

Pages: 1 2 3 [4]
anything