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

Pages: [1]
1
General / Re: setSize error with structure.
« on: July 09, 2018, 11:36:02 am »
Right... bad mistake. Thanks   :D

2
General / setSize error with structure.
« on: July 08, 2018, 09:53:01 pm »
struct Bat {
    sf::RectangleShape shape();
    int x=360;
    int vx=1;
} batleft, batright;

int main ()
{
     (...)
     batleft.shape.setSize(sf::Vector2f(50, 20))
     batright.shape.setSize(sf::Vector2f(50, 20))
     (...)
}
 

Hey everyone. This code gives me the following error : 'batleft.Bat::shape' does not have class type. Same with the right one. I tried setting the size in the declaration but it gives me even more errors ( expected ')' before numeric constant / expected ';' at end of member decalaration / expected unqualified-id before numeric constant ).

3
General / Re: Console doesn't open.
« on: June 19, 2018, 11:05:09 am »
Well, I really don't know what to say. The SFML window always opened, but now I removed the font I used in the app from its folder, and so when I tried to compile, the console opened with an error message saying that it couldn't be located. I put the font back in and it worked... weird. Thanks anyways!

4
General / Console doesn't open.
« on: June 18, 2018, 10:25:02 pm »
This is my first time making anything in SFML, and I'm still new to C++. I started doing this Space Invaders project, and I'm still very early in it. When I started, I did a few tests, and it ran well, but just now I wrote a chunk of code and the console doesn't seem to open anymore. I even put that part of the code into comments, but the console still didn't show up. I restarted my PC, and wrote the code into a fresh project but still, nothing. If needed, I'll link the code.

Pages: [1]