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

Pages: 1 2 [3] 4 5 6
31
Graphics / Can't load sf::Sprite from a function
« on: August 01, 2009, 06:13:25 pm »
Create a resource manager that has a container and add/remove methods.

32
General / 65+ Warnings
« on: July 21, 2009, 03:14:05 am »
Quote from: "klusark"
Are the .pdb files in the same folder as the lib's? Did you build it your self?


I haven't built anything. I am using SFML as I downloaded it.

33
General / 65+ Warnings
« on: July 21, 2009, 03:11:50 am »
Quote from: "klusark"
You still need to link against the static libraries. For example sfml-system-s.lib.


This is what I've got:
Quote

sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib

34
General / 65+ Warnings
« on: July 21, 2009, 03:07:37 am »
Quote from: "klusark"
Refer to the tutorials getting started section. It will tell you what to do.


If you're referring to this:
Quote

Important: if you link against the dynamic libraries, you have to define the SFML_DYNAMIC  macro in your project's settings. If you don't, you'll get linker errors when compiling your application.


I am not linking against dynamic libraries. I am using static.

35
General / 65+ Warnings
« on: July 21, 2009, 02:45:56 am »
Quote from: "Laurent"
This means that the linker cannot find the debugging symbols for the SFML libraries.


What am I supposed to do about it?

36
General / 65+ Warnings
« on: July 17, 2009, 04:52:25 pm »
I am using VSC++ and I receive 65 warnings.
http://codepad.org/qUx4Epsk

My code has nothing more than a simple framework to initialize the window and clear and display.

I am also linking to static & debug libraries.

37
Window / Window.GetInput().GetMouseX()
« on: June 29, 2009, 02:22:26 am »
Yes, that's what I assumed but after I tested.... it is restricted to a positive number.

Try it.

38
Window / Window.GetInput().GetMouseX()
« on: June 28, 2009, 10:44:55 pm »
I've noticed that GetMouseX() returns an int.

Why is it an int, shouldn't it return unsigned int?

39
SFML projects / Squeebs, a 2d comic mmorpg
« on: June 28, 2009, 09:40:25 pm »
Quote from: "Dinocool"
Yes this project does use SFML, NOT gamemaker

i'm sorry for those that this project does not work for...

all i can say is that in future versions i shall be looking for ways to increase the compatiblity with vista!

anyways, any suggestions on how to do this would be great


Well, if this is really using SFML you wouldn't have any Vista compatibility issues.

40
General / [SOLVED] Clicking On Items
« on: June 27, 2009, 05:20:40 pm »
It works the same either way.... if you give the object a "Collision Method" the container will still need to iterate through the list of entities.

41
General / Pure Virtual Function call
« on: June 27, 2009, 04:06:35 pm »
I think it is a bug.

I got that error, too, just earlier.


Happened when I created an Image without doing anything with it:
Code: [Select]

sf::Image imCursor;
imCursor.LoadFromFile(...);



Commenting it out relieves the issue.

Once I set a sprite to that image, then draw the sprite.... it also relieved the issue.


By the way, I was using VC++.

42
Graphics / Overlapping Views
« on: June 26, 2009, 08:46:28 am »
What method is used to set the sprite to a specified view?

43
Graphics / Overlapping Views
« on: June 26, 2009, 08:16:14 am »
Does SFML support overlapped views?

I am trying to do parallax scrolling but I do not want to go through the trouble of manually managing the entities' movement (which is what the views are for).

44
SFML projects / Squeebs, a 2d comic mmorpg
« on: June 11, 2009, 09:28:08 am »
Wow dude.... I wonder if I brought you to SFML.


I could definitely help you out with the Sqeebs project. I fairly experienced with C++ and fairly experienced with SFML.

45
Graphics / Drawable.GetPosition()
« on: April 17, 2009, 04:05:55 pm »
I'm sorry.... I rechecked the code more indepth and I wrote a class member when it should have been a function member:

Code: [Select]

Paddle1.GetY


//Fixed
Code: [Select]

Paddle1.GetY()


Code: [Select]

class Paddle {
    private:
        sf::Shape self;

    public:
        Paddle() {
            self = sf::Shape::Rectangle( 0.f, 0.f, 10.f, 100.f, sf::Color( 255, 255, 255 ) );
        }
        Paddle( float X, float Y ) {
            self.Move( X, Y );
        }

        void Move( float X, float Y ) {
            self.Move( X, Y );
        }

        void SetX( float X ) {
            self.SetX( X );
        }

        void SetY( float Y ) {
            self.SetY( Y );
        }

        float GetX() {
            return ( self.GetPosition().x );
        }

        float GetY() {
            return ( self.GetPosition().y );
        }

        sf::Shape Draw() {
            return ( self );
        }
};


float lengthdir_x( float Length, float Direction ) {
    return ( std::cos( -Direction*( 3.14159265/180 ) ) * Length );
}

float lengthdir_y( float Length, float Direction ) {
    return ( std::sin( -Direction*( 3.14159265/180 ) ) * Length );
}

Pages: 1 2 [3] 4 5 6
anything