Thanks Ianm that looks good was going to reply sooner but i been busy with life. now all i need to do is get my sliding collision working with that now.
a problem i am having though is getting my player class to work right. i have
// Simple load object class
class LoadObject : public BasicObject
{
public:
LoadObject(std::string Filename)
{
dbLoadObject ( (char*)Filename.c_str(), O->Ref() );
}
};
class LoadPlayer : public BasicObject
{
public:
LoadPLayer(std::string Filename)
{
dbLoadObject ( (char*)Filename.c_str(), O->Ref() );
}
};
but when i call
LoadPlayer Test("Media\\Models\\Player\\Player.X");
i get an error
d:\Engine\Dragon_Warrior\Dragon_Warrior.h(40) : warning C4183: 'LoadPLayer': missing return type; assumed to be a member function returning 'int'
Dragon_Warrior.cpp(31) : error C2664: 'LoadPlayer::LoadPlayer(const LoadPlayer &)' : cannot convert parameter 1 from 'const char [40]' to 'const LoadPlayer &'
Reason: cannot convert from 'const char [40]' to 'const LoadPlayer'
No constructor could take the source type, or constructor overload resolution was ambiguous
is it possible to inherit from the same class twice?