SFML community forums

Help => Graphics => Topic started by: phux on March 24, 2010, 02:47:42 pm

Title: Some questions
Post by: phux on March 24, 2010, 02:47:42 pm
Im a beginner with SFML and I'm trying to just create a game to learn. But got a few problems

I got a spritesheet with 6 sprites for my character. 3 to move left and 3 to move right.  I managed to cut one of them out at a time but how can I:

LeftKey= move left and show 3 stages of sprites ?

and just something I tought about. How can I make a sprite to a solid object, like a wall or smth that the character can't move through, or a moveable object?
Title: Some questions
Post by: Mindiell on March 24, 2010, 02:57:06 pm
Hello,

I really think that you have to serch out on Goo...ethicle (http://www.ethicle.com/). There is a lot of tutorials on "How can I make a game in c++".

SFML is simply a lib, not a framework ;)
Title: Some questions
Post by: phux on March 24, 2010, 05:19:22 pm
So sfml does not support what I want to do? But isnt a framework smth large en prewritten?
Title: Some questions
Post by: gsaurus on March 24, 2010, 06:39:46 pm
supports is actually the best word, sfml supports you on doing your game, but it doesn't do it for you. If you're just starting I suggest you to see the sfml tutorias and examples. For animations check the sfml wiki, it can help. For collision you have to do your own collision detection, being it with bounding boxes or pixel detection, but check the wiki too, there are something about it.
Title: Some questions
Post by: phux on March 24, 2010, 06:45:18 pm
kk, will just read everything then ^^