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

Pages: 1 ... 3 4 [5] 6 7 ... 16
61
Audio / Sounds stop suddenly
« on: August 24, 2010, 04:48:37 pm »
As always, a minimal code could be helpful.

And try to explain your problem clearly, I didn't understand if your sound is playing or not. And maybe you can count yur numbe of sounds in order to answer to Laurent ;)

62
General / Is there any way to make some files with imgs/snds inside?
« on: August 24, 2010, 01:58:40 pm »
I did the one without the .zip thing (all ressources in one big .DAT file) in French, I can translate it in English (in fact I had to somedays, but I certainly forgot). If you have any question, ask questions ;)

63
General / Is there some smarter way to create a game menu, than this?
« on: August 24, 2010, 01:56:43 pm »
If you look at this tuto on the wiki, I did use a simple menu with up and down keys.

64
General / How to catch mouse
« on: August 24, 2010, 09:28:30 am »
Normally, there is a sf::Window::SetCrsorPosition.
But if you are using a windowed app, you should not, IMO, block the cursor (apart if you have a key (like escape maybe) to release the mouse).

65
General / how to install sfml in code blocks (newest version)
« on: August 24, 2010, 09:14:41 am »
Code::Blocks is using files inside your MinGW directory. You don't have to run it yourself. There is ome exein the "bin" directory.

Right now, what you have to do is open Code::Blocks and choose, in the menu, "Settings / Compiler and Debugger".
Click on the "Reset Default" button and after some click to say "yes" to Code::Blocks, it must have detected your compiler (GNU GCC Compiler).

66
General / Mouse button problem
« on: August 23, 2010, 09:18:14 am »
Because... :D

Maybe a "minimal code" could be easier to help you ;)

67
General / KeyBoard Problem...
« on: August 23, 2010, 09:17:19 am »
I didn't really try to read your code (very hard to read it I think), but if I were you I'll try to use some states for the player :
- Running
- Jumping
- Running & Jumping

And change the state with the GetEvent and not with the GetInput ;)

68
General discussions / Blocking
« on: August 23, 2010, 08:59:38 am »
I don't really understand what you are saying by "really blocked", since the application must continue to handle events to be un-blocked.

The only thing you have to do is a loop with a sleep, waiting a specific event. If the app s blocked, nothing will un-block it, it must wait for a signal or something, no ?

69
General / Life-/Mana-bar
« on: August 23, 2010, 08:52:46 am »
Spodi got the right answer, a filled bar would have made it.
When changing the SubRect of the Sprite, it would have modify only its vertical size.

70
Graphics / If Statement Really Aggravating Problem! Grr...
« on: August 19, 2010, 09:37:19 am »
First of all, reading quickly, here is what happens for me :

After Starting
Code: [Select]

X = false
Y = false
myState = State0
counter = 0
cout :
XCoord :


After 'A'
Code: [Select]

X = false
Y = false
myState = State1
counter = 1
cout : ONE TWO
XCoord :

There is a problem I think, counter must not be incremented here, since you are modifying the State and testing the state just after you are entering the second test directly, but it's not a number nor a Return, so you print 'TWO' and increment counter (X==false && counter <5)

After '1'
Code: [Select]

X = false
Y = false
myState = State1
counter = 2
cout : ONE TWO TWO THREE
XCoord : 1


After '2'
Code: [Select]

X = false
Y = false
myState = State1
counter = 3
cout : ONE TWO TWO THREE TWO THREE
XCoord : 12


After '3'
Code: [Select]

X = false
Y = false
myState = State1
counter = 4
cout : ONE TWO TWO THREE TWO THREE TWO THREE
XCoord : 123


After '4'
Code: [Select]

X = false
Y = false
myState = State1
counter = 5
cout : ONE TWO TWO THREE TWO THREE TWO THREE TWO THREE
XCoord : 1234


After 'Return'
Code: [Select]

X = true
Y = true
myState = State1
counter = 6
cout : ONE TWO TWO THREE TWO THREE TWO THREE TWO THREE TWO
XCoord : 1234

There is another problem I think, You are testing X and modifying it (to true), just after you are testing X and Y, passig into this second test directly. Maybe you do something special if X and Y are true ? (like stopping checking keypressed events)

Good luck, it's not easy to understand :)

PS: Do the test in the inverse order of the logic, or return from function after being entered the if statements ;)

EDIT : PPS : Debug step by step too, with your head, a paper and a pencil ;)

71
Graphics / Change mousecursor
« on: August 18, 2010, 01:26:08 pm »
Arg !
This lib is so bad, you should add some documentation Laurent...

 :lol:

72
Graphics / Change mousecursor
« on: August 18, 2010, 08:42:46 am »
Maybe you can hide the mouse cursor too, before drawing the sprite ;)

73
General / Sleep(float) in Window.cpp
« on: August 06, 2010, 04:50:42 pm »
SFML_DYNAMIC ?
Did you change anything (don't say no ;))

74
Graphics / Re: Very strange problem with Image::LoadFromFile() & MS
« on: August 05, 2010, 03:55:18 pm »
Quote from: "chbrules"
I'm guessing there is something wrong with SFML here and not me ?

Maybe you can try to see if your image is loaded correctly as tutorial indicate it :
Code: [Select]
if (!Image.LoadFromFile("sprite.tga"))
{
    // Error...
}


Since you use the image on the sprite without knowing if it's loaded ;)

75
Network / Client server system help
« on: August 02, 2010, 11:27:08 am »
What do you use to send from clients ?
The cients should never send their position, just their wanteed movement. The server has to calculate and fix the positions. Because in your case, if I modify your client, I can, for example, ignore walls or never falling, etc...

Pages: 1 ... 3 4 [5] 6 7 ... 16
anything