if (CurrEquip.WeaponType == "2HR")
{
if (dbObjectFrame(4) < 55 || dbObjectFrame(4) > 105 )
{
dbPlayObject(4,55);
dbSetObjectSpeed(4,25);
}
}
if (CurrEquip.WeaponType == "Fly")
{
if (dbObjectFrame(4) < 320 || dbObjectFrame(4) > 370 )
{
dbPlayObject(4,320);
dbSetObjectSpeed(4,25);
}
}
if (CurrEquip.WeaponType == "2HM")
{
if (dbObjectFrame(4) > 50 )
{
dbPlayObject(4,0);
dbSetObjectSpeed(4,25);
}
}
Given up on dbLoopObject. its broken.
problem solved
**** EDIT
Scratch that .. it was running in debug mode also, Release refuses to let me manipulate object animations mid game loop on any X object.
**** EDIT 2
Last Post :: Fixed it.
http://forum.thegamecreators.com/?m=forum_view&t=135724&b=22&msg=1576632#m1576632
cant compare char* to "Text" in an IF statement in VC++ Release mode
if (dbKeyState(17)==1)
{
plrWalking = 1;
}
if (dbKeyState(30)==1 && dbMouseClick() == 2)
{
plrWalking = 1;
}
if (dbKeyState(32)==1 && dbMouseClick() == 2)
{
plrWalking = true;
}
if (dbKeyState(17)==0)
{
plrWalking = 0;
}
if (dbKeyState(31)==1)
{
plrReversing = 1;
}
if (dbKeyState(31)==0)
{
plrReversing = 0;
}
// Brute Profile WALK
if (plrWalking == true)
{
if (CurrEquip.WepRightID == 500)
{
if (dbObjectFrame(4) < 55 || dbObjectFrame(4) > 105 )
{
dbPlayObject(4,55);
dbSetObjectSpeed(4,25);
}
}
if (CurrEquip.WepRightID == 501)
{
if (dbObjectFrame(4) < 320 || dbObjectFrame(4) > 370 )
{
dbPlayObject(4,320);
dbSetObjectSpeed(4,2500);
}
}
if (CurrEquip.WepRightID == 0)
{
if (dbObjectFrame(4) > 50 )
{
dbPlayObject(4,0);
dbSetObjectSpeed(4,25);
}
}
}
meaning "CurrEquip.WeaponType" needs to be deleted as its useless.