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

Pages: [1]
1
SFML projects / Sketch RPG
« on: September 05, 2010, 05:40:39 pm »
No ! no ! Liked the character's movements too  :P !

2
General / Running Program Without IDE
« on: September 05, 2010, 02:52:39 am »
Then u have to configure the IDE parameters and help him found source files ... This would be a little bit hard

Also u have to know that the source files ( .cpp, .h and .hpp) are not indispensable to the .exe...

All the .exe needs are the dlls and the ressource files ...

And for the main.o it's a result of the main.cpp file you'll have a xxx.o file for every .cpp file after a compilation, they are called object files ( i think )... that's all i know about it :P

3
General / Running Program Without IDE
« on: September 05, 2010, 02:37:00 am »
You can use directly this "xxxx.LoadFromFile(Images/pic.bmp)" which is more clean.

this mean that are looking for a file that is placed on a folder nammed 'Images' who is placed in the same place with the .exe

This would work if you run the program without the IDE (from the explorer ...)

:arrow:  All you have to do to get it working when you run the program from the IDE is :

1 - activate your projet from the prject manager layout.
2 - Go to project > Properties >Build Targets.
3 - Set Execution working dir : to 'bin\debug\'

4
General / Running Program Without IDE
« on: September 05, 2010, 02:23:34 am »
You have to do this manually.

But you have to know that u don't need the 'main.o' to run the application  :wink:.

All you need is the ressource files (images, fonts, cursor ...) in addition to the librarys (.Dll files ) if you are using dynamic libraries of sfml.

5
General / Running Program Without IDE
« on: September 05, 2010, 02:12:56 am »
Folders were created for such a goal :wink:

For example :

- Create an Image Folder and place it with the .exe nammed "Images" for images so u can load it as the following "PlayerImage.LoadFromFile("Images/Player.png") ".

- Create a folder to put fonts on...

Is this what u need ?

6
SFML projects / Sketch RPG
« on: September 05, 2010, 12:59:14 am »
Nice ! Liked it  :).

7
General / Running Program Without IDE
« on: September 04, 2010, 04:48:52 pm »
Did u rebuild the project ?

8
General / Running Program Without IDE
« on: September 04, 2010, 02:14:24 am »
Is it a console application, what i want to know exactly from this is that when u execute programe from the IDE any console is shown ?

If u don't allow the console then it could be a fileloading path error of files " 'icon.bmp' , 'cursor.cur' .... "  which is not shown on the console ^^ .

9
General / Life-/Mana-bar
« on: September 02, 2010, 12:39:46 am »
hehe  :D sry for the erroe didn't pay attention on :F .

10
General / Life-/Mana-bar
« on: September 01, 2010, 05:06:37 pm »
If u see this line of code ^^ then it's so logical . :)

Code: [Select]
Lifebar.SetSubRect(sf::IntRect(0,0,95, m_life / m_max_life * 190));

Try this :

Code: [Select]
Lifebar.SetSubRect(sf::IntRect( 190 - ( m_life / m_max_life * 190 ) ,0,95,190));

It should work ^^.

11
General / Life-/Mana-bar
« on: September 01, 2010, 12:19:59 am »
Move function isn't like SetX and SetY functions becauce move function increase X and Y by the values u give in :!:

For example : If u use Move function of a sprite that have x= 800 and y= 500 as the following : sprite.move(800,900) then the new coordinates would be x = 1600 and y = 1700.
And u will not see it probably in the window ^^. :P

 :arrow: I council u to avoid calculating in parameters as u did before try this ^^ :

Code: [Select]

int y = 768 - 190 + ( 190 - (m_life / m_max_life * 190));//
Lifebar.SetX ( y ); //this is better ^^  

12
General / Life-/Mana-bar
« on: August 31, 2010, 04:57:02 pm »
Can u show some code ^^ !

13
General / Life-/Mana-bar
« on: August 24, 2010, 05:31:43 pm »
It's not that complicated this is a way u can use it's simple !

Here is the way how to procede !
1 :

2 :

3 :

Pages: [1]
anything