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

Pages: 1 [2] 3 4 ... 7
16
General / Re: Problems with the SFML2 tutorial program
« on: July 04, 2012, 08:50:25 pm »
Here are the errors i have
Code: [Select]
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Package.hpp|103|error: invalid abstract return type for member function 'my::Data::Stream my::Data::Package::GetStream(std::string)'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   because the following virtual functions are pure within 'my::Data::Stream':|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\InputStream.hpp|59|note: virtual sf::Int64 sf::InputStream::read(void*, sf::Int64)|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\InputStream.hpp|69|note: virtual sf::Int64 sf::InputStream::seek(sf::Int64)|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\InputStream.hpp|77|note: virtual sf::Int64 sf::InputStream::tell()|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\InputStream.hpp|85|note: virtual sf::Int64 sf::InputStream::getSize()|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp||In function 'int main()':|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|28|error: cannot allocate an object of abstract type 'my::Data::Stream'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   since type 'my::Data::Stream' has pure virtual functions|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|28|error: cannot allocate an object of abstract type 'my::Data::Stream'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   since type 'my::Data::Stream' has pure virtual functions|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|28|error: cannot declare variable 'sLogo' to be of abstract type 'my::Data::Stream'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   since type 'my::Data::Stream' has pure virtual functions|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|29|error: cannot allocate an object of abstract type 'my::Data::Stream'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   since type 'my::Data::Stream' has pure virtual functions|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|29|error: cannot allocate an object of abstract type 'my::Data::Stream'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   since type 'my::Data::Stream' has pure virtual functions|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|29|error: cannot declare variable 'sTest' to be of abstract type 'my::Data::Stream'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\..\..\..\..\include\My\Data\Stream.hpp|42|note:   since type 'my::Data::Stream' has pure virtual functions|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|33|error: 'class sf::Texture' has no member named 'LoadFromStream'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|34|error: 'class sf::Texture' has no member named 'LoadFromStream'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|41|error: 'class sf::Sprite' has no member named 'SetPosition'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|43|error: 'class sf::Sprite' has no member named 'SetPosition'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|46|error: 'class sf::RenderWindow' has no member named 'IsOpened'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|48|error: 'class sf::RenderWindow' has no member named 'PollEvent'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|49|error: 'class sf::Event' has no member named 'Type'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|50|error: 'class sf::RenderWindow' has no member named 'Close'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|53|error: 'class sf::RenderWindow' has no member named 'Clear'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|54|error: 'class sf::RenderWindow' has no member named 'Draw'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|55|error: 'class sf::RenderWindow' has no member named 'Draw'|
C:\Users\aBallofWin\Downloads\libMy\libMy\examples\packages\main.cpp|56|error: 'class sf::RenderWindow' has no member named 'Display'|
||=== Build finished: 19 errors, 0 warnings ===|
:<

17
General / Re: Problems with the SFML2 tutorial program
« on: July 04, 2012, 08:33:55 pm »
I didn't think so, I downloaded the latest snapshot from the downloads page, labelled SFML 2.0 snapshot.

Yes that's will just download the source to build the library, thus doesn't contain any binaries...
You need to download the release candidate (SFML 2.0rc).

Ahh cheers! My bad lol. Just need to solve the errors with libMy now

18
General / Re: Problems with the SFML2 tutorial program
« on: July 04, 2012, 06:53:54 pm »
Quote
It appears I left out the .a and .dll files from the lib folder, but I've had to copy those from the sfml1.6, as they weren't supplied in the sfml2 RC, I don't know if this is okay or not.
No it's not ok. The .a and .dll files are there, which archive did you download from the website?

I didn't think so, I downloaded the latest snapshot from the downloads page, labelled SFML 2.0 snapshot.

19
General / Re: Problems with the SFML2 tutorial program
« on: July 04, 2012, 01:15:08 pm »
It appears I left out the .a and .dll files from the lib folder, but I've had to copy those from the sfml1.6, as they weren't supplied in the sfml2 RC, I don't know if this is okay or not.

After that it threw up some really wacky errors:
Code: [Select]
obj\Debug\test1.o||In function `main':|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsjRKNS_15ContextSettingsE'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|6|undefined reference to `_imp___ZN2sf4Font14getDefaultFontEv'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|6|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|6|undefined reference to `_imp___ZN2sf4TextC1ERKNS_6StringERKNS_4FontEj'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|14|undefined reference to `_imp___ZN2sf6Window5closeEv'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|11|undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|17|undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|18|undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|18|undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|19|undefined reference to `_imp___ZN2sf6Window7displayEv'|
C:\Users\aBallofWin\Documents\sfml2\test1.cpp|8|undefined reference to `_imp___ZNK2sf6Window6isOpenEv'|
obj\Debug\test1.o||In function `~VertexArray':|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\VertexArray.hpp|46|undefined reference to `_imp___ZTVN2sf11VertexArrayE'|
obj\Debug\test1.o||In function `~Text':|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Text.hpp|49|undefined reference to `_imp___ZTVN2sf4TextE'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Text.hpp|49|undefined reference to `_imp___ZTVN2sf4TextE'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Text.hpp|49|undefined reference to `_imp___ZN2sf13TransformableD2Ev'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Text.hpp|49|undefined reference to `_imp___ZN2sf13TransformableD2Ev'|
||=== Build finished: 16 errors, 0 warnings ===|

EDIT: I have to leave for a while, but shall be back later!

20
General / Re: Problems with the SFML2 tutorial program
« on: July 04, 2012, 12:55:22 pm »
Deleted that cheers, but it's come up with:  ld.exe || cannot find -lsfml-graphics |
I tried linking it as both sfml-graphics and with the -l
hmm

21
General / Problems with the SFML2 tutorial program
« on: July 04, 2012, 12:41:47 pm »
I followed the SFML 2 tutorial step by step (I believe) but it comes up with these errors (after a fresh install of codeblocks as I was having different errors before:

Code: [Select]
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Config.hpp|146|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Time.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Clock.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Err.hpp|32|error: ostream: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Err.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\InputStream.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\NonCopyable.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Lock.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Mutex.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Sleep.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\String.hpp|32|error: locale: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\String.hpp|33|error: string: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\String.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Thread.hpp|33|error: cstdlib: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Thread.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\ThreadLocal.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\ThreadLocalPtr.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\ThreadLocalPtr.inl|26|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Utf.hpp|32|error: algorithm: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Utf.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Vector2.hpp|29|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\System\Vector3.hpp|29|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\GlResource.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\ContextSettings.hpp|29|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\Context.hpp|37|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\Joystick.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\Keyboard.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\Mouse.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\Event.hpp|37|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\VideoMode.hpp|32|error: vector: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\VideoMode.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\WindowHandle.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\WindowStyle.hpp|29|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Window\Window.hpp|43|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\BlendMode.hpp|28|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Color.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Rect.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Glyph.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Image.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Texture.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Font.hpp|37|error: map: No such file or directory|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Font.hpp|42|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Transform.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\RenderStates.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\View.hpp|37|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\PrimitiveType.hpp|28|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Vertex.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\RenderTarget.hpp|43|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\RenderTexture.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\RenderWindow.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Shader.hpp|42|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Drawable.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Transformable.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\VertexArray.hpp|39|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Shape.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\CircleShape.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\RectangleShape.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\ConvexShape.hpp|36|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Sprite.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\SFML-2\include\SFML\Graphics\Text.hpp|42|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
C:\Users\aBallofWin\Documents\sfml2\test.c||In function 'main':|
C:\Users\aBallofWin\Documents\sfml2\test.c|5|error: expected expression before ':' token|
C:\Users\aBallofWin\Documents\sfml2\test.c|6|error: duplicate label 'sf'|
C:\Users\aBallofWin\Documents\sfml2\test.c|5|note: previous definition of 'sf' was here|
C:\Users\aBallofWin\Documents\sfml2\test.c|6|error: expected expression before ':' token|
C:\Users\aBallofWin\Documents\sfml2\test.c|8|error: 'window' undeclared (first use in this function)|
C:\Users\aBallofWin\Documents\sfml2\test.c|8|error: (Each undeclared identifier is reported only once|
C:\Users\aBallofWin\Documents\sfml2\test.c|8|error: for each function it appears in.)|
C:\Users\aBallofWin\Documents\sfml2\test.c|10|error: duplicate label 'sf'|
C:\Users\aBallofWin\Documents\sfml2\test.c|5|note: previous definition of 'sf' was here|
C:\Users\aBallofWin\Documents\sfml2\test.c|10|error: expected expression before ':' token|
C:\Users\aBallofWin\Documents\sfml2\test.c|11|error: 'event' undeclared (first use in this function)|
C:\Users\aBallofWin\Documents\sfml2\test.c|13|error: 'sf' undeclared (first use in this function)|
C:\Users\aBallofWin\Documents\sfml2\test.c|13|error: expected ')' before ':' token|
C:\Users\aBallofWin\Documents\sfml2\test.c|18|error: 'text' undeclared (first use in this function)|
C:\Users\aBallofWin\Documents\sfml2\test.c|5|warning: label 'sf' defined but not used|
||=== Build finished: 72 errors, 1 warnings ===|

I wanted to try out libMy but due to being in sfml2 I tried the tutorial and this happened :( Any suggestions?

22
SFML projects / Re: [Released] libMy - Datapackaging library
« on: July 04, 2012, 11:02:36 am »
Oh I even found a copy of it on my drive, but I've tempered with it a bit, so it's not 100% the original pack. ;)
There you go: http://pitload.org/3110

Thank you very much!

23
SFML projects / Re: [Released] libMy - Datapackaging library
« on: July 04, 2012, 12:26:52 am »
Does anyone have a download of the full package that they could zip up and host at mediafire or something? sfmluploads seems to have been down for a while now :/

24
SFML projects / Re: Zloxx II - An action Jump'n'Run
« on: July 02, 2012, 06:24:03 pm »
You can take a look at libMy, although it's outdated and the code design isn't the best, also since sfmluploads is once more down, you can't download it atm. ::)

Cheers! I'm just going to have to wait for sfmluploads then! :(

25
SFML projects / Re: Zloxx II - An action Jump'n'Run
« on: July 02, 2012, 06:01:08 pm »
Quote
Maybe you should put it in a .rar or .zip instead of .7z. I'm sure not everyone has 7-zip and it saves them having to go download it themselves :)
On the contrary, people should start using 7zip! I love it! ;)
Don't get me wrong, I do love 7zip too! It's just that I know that some people don't like to install stuff on their computer, or they've got that god damn awful WinRAR ... :@



Quote
How did you pack your resources into .zlx files as well (plus loading them)? I'm intrigued, as that could really help me in my game so people couldn't see the images and that!

It seems like he's created his own format with his own loader and packer. ;)

Hmm, If Nexus doesn't want to share, I may have to look into this :)

26
SFML projects / Re: Zloxx II - An action Jump'n'Run
« on: July 02, 2012, 05:52:38 pm »
Looks very nice! Just two things:

Maybe you should put it in a .rar or .zip instead of .7z. I'm sure not everyone has 7-zip and it saves them having to go download it themselves :)

How did you pack your resources into .zlx files as well (plus loading them)? I'm intrigued, as that could really help me in my game so people couldn't see the images and that!

27
General / Re: Extra Window
« on: June 29, 2012, 03:23:35 pm »
You could either look for some C++ code to hide the console window or you could build it to be a GUI application. I don't know about VS but in CodeBlocks you can change the properties of a project to build it as a GUI application (either in Release/Debug).

28
Are you loading a new image for each point you have, or are you just loading the image once then assigning it to points?

29
General / Re: Optimizing collision system
« on: June 14, 2012, 01:36:57 pm »
If you still haven't solved the problem this may be of help.

I was having problems with this a few days ago and came up with two solutions that on their own didn't really work to well, but together did.

One of them is to detect what way you're moving when you collide with an object and when that happens, (for example I'm moving right) knock out the move right function until you stop colliding with the collision boundary.

The second method I put to use was to push the player back by their speed movement plus 1. This would be achieved by:
Code: [Select]
goback = HeroUnder.GetPosition().y; Hero.SetY(goback - (speed + 1));
Together they pushed the player back a bit, plus if they do start touching collision somehow, then that movement is disabled. It actually pushes them back once, the character will come a few spaces forwards then stop, which actually looks like they've just come to a stop.

I'm not saying that this is the way to go and I know it's not the best method to deal with collision, but it may give you an idea of how to do it :)


EDIT: try thePyro_13's method first. It sounds a lot more efficient

30
Sorry but the download link is dead! :'(  Can you reupload it?

I second this :P

Pages: 1 [2] 3 4 ... 7