Does anyone know when part 5 will be up?
C++ Tile Engine from Scratch -- Part 4
#32
Posted 14 August 2012 - 08:44 AM
Being the OP hasn't been on since Apr 29 2012, I am going to guess "a while". 
You could always write up a tutorial to fill in after this one!
You could always write up a tutorial to fill in after this one!
#33
Posted 14 August 2012 - 09:00 AM
Well, I do have somewhat of an "meh" idea on how to animate sprites, but more than likely, with my skills in programming, it wouldn't work :L
#34
Posted 14 August 2012 - 09:06 AM
A great way to sharpen your skills is to work on things and try out different approaches and see what works. Every program you fail to write is a learning experience that will help teach you the proper way to do things.
#35
Posted 14 August 2012 - 09:19 AM
That's true. But it's just, I really don't know another approach. Maybe I should learn a bit more before I try to work on that bit.
#36
Posted 20 August 2012 - 02:55 AM
Sir, I'm sorry for being rude...
Could I gave you suggestion?
Hm, why don't you make the books..
I mean, so we all can read them, also more comfortable to concentrate and finish your tutorial...
Afterwards if there's any error, we would love to ask you by email or in this forums...
I'm sorry if I troubled you guys so much..
Btw, Thanks in advance..
Could I gave you suggestion?
Hm, why don't you make the books..
I mean, so we all can read them, also more comfortable to concentrate and finish your tutorial...
Afterwards if there's any error, we would love to ask you by email or in this forums...
I'm sorry if I troubled you guys so much..
Btw, Thanks in advance..
#37
Posted 18 September 2012 - 08:06 AM
Hey guys,
First great tutorial i just hoped you had added your version of the SFML 2.0 it would have made this tutorial much easier.
The SFML 2.0 is updated and that makes this tutorial harder to understand but after hours and more hours and even more hours i finally fixed every thing and when i tried to run my code i get this nasty error.
I leaded to Level.cpp Function
and when you press continue instead of break then you get this error
and it leads to rapidxml.hpp
Could any one please help me out i don't want that many hours to be wasted.
Thanks in advanced
First great tutorial i just hoped you had added your version of the SFML 2.0 it would have made this tutorial much easier.
The SFML 2.0 is updated and that makes this tutorial harder to understand but after hours and more hours and even more hours i finally fixed every thing and when i tried to run my code i get this nasty error.
Unhandled exception at 0x755cd36f in 2DGameEngine.exe: Microsoft C++ exception: std::basic_string<char,std::char_traits<char>,std::allocator<char> > at memory location 0x0023f728..
I leaded to Level.cpp Function
void Level::LoadLevel(std::string filename, ImageManager& imageManager)
and when you press continue instead of break then you get this error
Unhandled exception at 0x0138bef1 in 2D Game.exe: 0xC0000005: Access violation reading location 0x00000020.
and it leads to rapidxml.hpp
xml_attribute<Ch> *first_attribute(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
{
if (name)
{
if (name_size == 0)
name_size = internal::measure(name);
for (xml_attribute<Ch> *attribute = m_first_attribute; attribute; attribute = attribute->m_next_attribute)
if (internal::compare(attribute->name(), attribute->name_size(), name, name_size, case_sensitive))
return attribute;
return 0;
}
else
return m_first_attribute;
}
Could any one please help me out i don't want that many hours to be wasted.
Thanks in advanced
#38
Posted 11 February 2013 - 11:12 AM
Error 1 error C2039: 'SetImage' : is not a member of 'sf::Sprite' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\tile.cpp 6 1 Project1 Error 2 error C2039: 'SetPosition' : is not a member of 'sf::Sprite' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\tile.cpp 16 1 Project1 Error 3 error C2039: 'Draw' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\tile.cpp 17 1 Project1 Error 4 error C2039: 'LoadFromFile' : is not a member of 'sf::Image' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\imagemanager.cpp 75 1 Project1 Error 5 error C2039: 'Create' : is not a member of 'sf::Image' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\imagemanager.cpp 89 1 Project1 Error 6 error C2039: 'Copy' : is not a member of 'sf::Image' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\imagemanager.cpp 90 1 Project1 Error 7 error C2039: 'Clear' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 42 1 Project1 Error 8 error C2039: 'Top' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 55 1 Project1 Error 9 error C2039: 'Height' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 55 1 Project1 Error 10 error C2039: 'Left' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 57 1 Project1 Error 11 error C2039: 'Width' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 57 1 Project1 Error 12 error C2039: 'Display' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 67 1 Project1 Error 13 error C2039: 'PollEvent' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 74 1 Project1 Error 14 error C1903: unable to recover from previous error(s); stopping compilation c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 74 1 Project1
I have got these errors. Maybe someone know how to fix them?
#39
Posted 29 May 2013 - 03:23 PM
adomas, on 11 February 2013 - 11:12 AM, said:
Error 1 error C2039: 'SetImage' : is not a member of 'sf::Sprite' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\tile.cpp 6 1 Project1 Error 2 error C2039: 'SetPosition' : is not a member of 'sf::Sprite' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\tile.cpp 16 1 Project1 Error 3 error C2039: 'Draw' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\tile.cpp 17 1 Project1 Error 4 error C2039: 'LoadFromFile' : is not a member of 'sf::Image' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\imagemanager.cpp 75 1 Project1 Error 5 error C2039: 'Create' : is not a member of 'sf::Image' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\imagemanager.cpp 89 1 Project1 Error 6 error C2039: 'Copy' : is not a member of 'sf::Image' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\imagemanager.cpp 90 1 Project1 Error 7 error C2039: 'Clear' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 42 1 Project1 Error 8 error C2039: 'Top' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 55 1 Project1 Error 9 error C2039: 'Height' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 55 1 Project1 Error 10 error C2039: 'Left' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 57 1 Project1 Error 11 error C2039: 'Width' : is not a member of 'sf::Rect<T>' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 57 1 Project1 Error 12 error C2039: 'Display' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 67 1 Project1 Error 13 error C2039: 'PollEvent' : is not a member of 'sf::RenderWindow' c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 74 1 Project1 Error 14 error C1903: unable to recover from previous error(s); stopping compilation c:\users\adomas\desktop\tileenginetutorialpart4source (1)\engine.cpp 74 1 Project1
I have got these errors. Maybe someone know how to fix them?
This might be a bit late but you are probably using a newer version of SFML which has a different capitalization structure try making the first letter of each call lowercase, also your going to be having trouble with the imagemanager class as you need to create a texture from the image file then load a sprite from that. This is why you are getting the error that Sprite has no member called setImage(). I'm actually in the process of working on this right now. Good luck
|
|





MultiQuote








|