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

Pages: 1 [2] 3 4 ... 6
16
General / Re: Correct way to do player movement
« on: April 19, 2012, 02:21:11 am »
In this case, deltatime should be the time of one frame. So you have to calculate it correctly.
Declare "deltatime" out of the main loop.
clock.restart();

//events...

deltatime = clock.getElapsedTime().asSeconds();
For more advanced loop, you could use a fixed timestep. This tutorial explains it very well:
http://www.koonsolo.com/news/dewitters-gameloop/

17
General discussions / Re: New naming convention
« on: April 18, 2012, 12:49:56 am »
I just wanted to say that I hate the new naming convention and will probably switch to a different library because of this

it looks like ass and makes no sense
You had your time to judge before releasing the new naming convention. The new naming doesn't affect when coding, only changes some characters. Which are your arguments for making that decision?

Anyway I think that it's your post wich doesn't make sense.

18
Audio / Re: Advice for music in different locations...
« on: March 29, 2012, 07:24:55 pm »
I think you want to stop the music playing before start playing the next music, don't you?
...
music1.Stop();
music2.Play();
...
...
music2.Stop();
music1.Play();
...

19
SFML projects / [WIP] SolidShaper + Box2D + SFML
« on: March 21, 2012, 03:58:54 pm »
Yes for example:

 - Create a polygon and then select it.
 - Then select "Extend" radio button and see how the new point moves with mouse.
 - Then come back to the menu and select another radio button.
 - Then clic anywhere.

I get something like this.
https://legacy.sfmluploads.org/cache/pics/231_ss.png

It's difficult to get these errors, but could happen.
Cheers.

20
General / GTK+ vs Qt vs wxWidgets
« on: March 21, 2012, 12:06:01 pm »
Nice, thank you.
I'll start testing Qt using the tutorial.

21
General / GTK+ vs Qt vs wxWidgets
« on: March 21, 2012, 12:31:36 am »
Has someone thought and disscused about this?
I'm trying to choose one and I would like to know wich of them can be integrated with SFML.

I've heard that GTK is simple and faster than others. But Qt or wxWidgets are OO and they provide more tools. wxWidgets seems to work on all plaftorms but Qt supports OpenGl rendering.

GTK and wxWidgets are 100% free, GPL and MIT licenses respectively. If you want to sell a Qt app, you must pay a license.

I want to know your opinions and wich would be a good option for mixing with SFML or developing a simple app.

Hope someone can convince and guide me through this issue. Thanks!

22
SFML projects / [WIP] SolidShaper + Box2D + SFML
« on: March 20, 2012, 08:34:57 pm »
Nice! I was thinking to do something like this merged to my generic map editor. But this could be my solution.

I've detected some interface errors, but it's Ok. I like the idea of making maps with collision shapes.

Good luck!

By the way, wich libary do you use for the GUI?

23
Graphics / SFML2 ConvexShape setFillColor Error
« on: March 19, 2012, 10:08:58 pm »
http://www.sfml-dev.org/documentation/2.0/classsf_1_1ConvexShape.php#details

Quote
It is important to keep in mind that a convex shape must always be... convex, otherwise it may not be drawn correctly.


Your shape isn't convex.

Non-convex

Convex

24
General / Networking (tutorial) using SFML and NodeJS
« on: March 15, 2012, 05:40:48 pm »
Really useful and interesting.

It's not difficult to create a simple server using directly sockets in C++, but why not minimize this work using a high level language like Javascript? Moreover, it can be extended with C++.

Nice tutorial man, thanks!

25
Feature requests / Enhanced Music Control
« on: March 14, 2012, 10:25:07 am »
Quote from: "Ryan Bram"
If SFML really want to compete with SDL

I don't think SFML wants to compete with SDL, it just provides faster results on graphics API and an easier interface.

26
General / Collision Detection in "more advanced" 2D Scenario
« on: March 10, 2012, 12:39:32 pm »
Quote from: "Skuller74"
I've never used a vector, but I know the general idea of how to implement one.


Use the implementation in Standard Template Library.  :wink:
http://www.cplusplus.com/reference/stl/vector/

27
Quote from: "DevilWithin"
Completed the survey :)

Me too. Waiting for results :D

28
General / Running Tutorial Program
« on: March 05, 2012, 03:05:24 pm »
Try to provide more information when posting, http://www.sfml-dev.org/forum/viewtopic.php?t=5559

29
General / Missing Functions in SFML Ubuntu
« on: March 05, 2012, 12:02:19 am »
Quote from: "dartosgamer"
I tried 1.6 and 2...

In SFML 1.6 it's IsOpened(), maybe you are mixing both versions.

30
General / [SFML 2.0] Collision
« on: February 21, 2012, 08:14:38 pm »
In the doc..
Quote
Since they live in the graphics card memory, the pixels of a texture cannot be accessed without a slow copy first. And they cannot be accessed individually. Therefore, if you need to read the texture's pixels (like for pixel-perfect collisions), it is recommended to store the collision information separately, for example in an array of booleans.


It's a slow operation, but using the right technique it can be easy and fast.
http://www.sfml-dev.org/forum/viewtopic.php?t=6958

EDIT: Sorry, Nexus posted before...

Pages: 1 [2] 3 4 ... 6
anything