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

Pages: [1]
1
Graphics / Comparing Coordinates
« on: August 27, 2009, 06:23:44 pm »
Hello Commnutiy ;)

I have another problem today and
it would be really gentil if u help me. :D

i wated to code a background and a sprite on it.no prob.
but now, i need to compare the coordinates so that the
sprite isnt able to go over the background.u understand?
the background has a size and if the player go over the map
he will maybe try to go over this size.

i looked in the docs  but there are only functions to flip or
to set the sprite.setting would be useful if i know the coords.
pls help.


Ancient

2
Graphics / New prob with sprite loading
« on: August 20, 2009, 04:07:41 pm »
hi again.

my problem is, that i wanted to open and load a sprite.
but now, he gives me an error-message:

Failed to load image "bred.png". Reason : Unable to open file.

the sprite is there were the *.exe is.
and another error ewhile i was trying to get some text:

Failed to load font "Times.ttf" <cannot open ressource>

pls help

Ancient

3
Graphics / Problem with SFML-compiling
« on: August 13, 2009, 07:36:36 pm »
helllo community!

i wanted to work a bit with the sfml.
So I downloaded the files and worked
a bit with the tuts.

But now i have the problem,when i try
to compile a program, he gives out some error-messages.

Code: [Select]

C:\C++\SFML\main.cpp|7|undefined reference to `__imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsmRKNS_14WindowSettingsE'|
C:\C++\SFML\main.cpp|22|undefined reference to `__imp___ZN2sf5ColorC1Ehhhh'|
C:\C++\SFML\main.cpp|22|undefined reference to `__imp___ZN2sf12RenderTarget5ClearERKNS_5ColorE'|
C:\C++\SFML\main.cpp|28|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\C++\SFML\main.cpp|28|undefined reference to `sf::RenderWindow::~RenderWindow()'|
||=== Build finished: 5 errors, 0 warnings ===|


And the Code:
Code: [Select]

#include <SFML/Graphics.hpp>
#include <iostream>

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


please help

Ancient

Pages: [1]
anything