Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Some questions  (Read 2033 times)

0 Members and 1 Guest are viewing this topic.

phux

  • Newbie
  • *
  • Posts: 6
    • View Profile
Some questions
« 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?

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Some questions
« Reply #1 on: March 24, 2010, 02:57:06 pm »
Hello,

I really think that you have to serch out on Goo...ethicle. There is a lot of tutorials on "How can I make a game in c++".

SFML is simply a lib, not a framework ;)
Mindiell
----

phux

  • Newbie
  • *
  • Posts: 6
    • View Profile
Some questions
« Reply #2 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?

gsaurus

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • Evolution Engine
Some questions
« Reply #3 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.
Pluma - Plug-in Management Framework

phux

  • Newbie
  • *
  • Posts: 6
    • View Profile
Some questions
« Reply #4 on: March 24, 2010, 06:45:18 pm »
kk, will just read everything then ^^