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.


Topics - phux

Pages: [1]
1
Graphics / Frame, Anim, Animated
« on: March 30, 2010, 12:56:02 am »
Hi!
Ive been trying to compile the sample file from Frame, Anim, Animated. Anywho I get these errors:

Quote
main.cpp: In function ‘int main(int, char**)’:
main.cpp:157: error: cannot declare variable ‘boy’ to be of abstract type ‘sftools::Animated’
animated.hpp:66: note:   because the following virtual functions are pure within ‘sftools::Animated’:
/usr/local/include/SFML/Graphics/Drawable.hpp:344: note:    virtual void sf::Drawable::Render(sf::RenderTarget&, sf::Renderer&) const
main.cpp:158: error: ‘class sftools::Animated’ has no member named ‘SetCenter’
animated.cpp: In member function ‘virtual void sftools::Animated::Render(sf::RenderTarget&) const’:
animated.cpp:214: error: ‘const class sf::IntRect’ has no member named ‘GetWidth’
animated.cpp:215: error: ‘const class sf::IntRect’ has no member named ‘GetHeight’
animated.cpp:228: error: ‘GL_QUADS’ was not declared in this scope
animated.cpp:228: error: ‘glBegin’ was not declared in this scope
animated.cpp:229: error: ‘glTexCoord2f’ was not declared in this scope
animated.cpp:230: error: ‘glVertex2f’ was not declared in this scope
animated.cpp:240: error: ‘glEnd’ was not declared in this scope
animated.cpp:245: error: ‘GL_TEXTURE_2D’ was not declared in this scope
animated.cpp:245: error: ‘glDisable’ was not declared in this scope
animated.cpp:248: error: ‘GL_QUADS’ was not declared in this scope
animated.cpp:248: error: ‘glBegin’ was not declared in this scope
animated.cpp:249: error: ‘glVertex2f’ was not declared in this scope
animated.cpp:253: error: ‘glEnd’ was not declared in this scope


What am I doing wrong? Do I miss any lib? Been googling and trying different solutions for 3 days now =O

2
Graphics / 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?

Pages: [1]
anything