Hi all
Have any of you experienced non responsive behavior in a game when you try to move an invisible object?
The code that works is as below:
function oApple_UseInv()
{
if(cFoxyMonk.ActiveInventory == iStick)
{
if(Game.DoOnceOnly("StickIsInTree") == true)
{
cFoxyMonk.Walk(129, 174, eBlock, eAnywhere);
oStick.Visible = true;
cFoxyMonk.FaceObject(oApple);
oStick.Move(oApple.X, 48, 4, eBlock, eAnywhere);
oStick.Move(oApple.X, 170, 4, eBlock, eAnywhere);
cFoxyMonk.LoseInventory(iStick);
oApple.Move(oApple.X, 180, 4, eBlock, eAnywhere);
oApple.Baseline = 0;
Display("Good shot! The apple falls out of the tree and lands on the ground with a thud.");
}
}
}
If I go and make oStick = True a comment i.e // oStick = True so that the stick remains invisible, and try to move it, the game becomes non responsive like it entered a long thinking loop.
Any Ideas what could be causing this?
Have any of you experienced non responsive behavior in a game when you try to move an invisible object?
The code that works is as below:
function oApple_UseInv()
{
if(cFoxyMonk.ActiveInventory == iStick)
{
if(Game.DoOnceOnly("StickIsInTree") == true)
{
cFoxyMonk.Walk(129, 174, eBlock, eAnywhere);
oStick.Visible = true;
cFoxyMonk.FaceObject(oApple);
oStick.Move(oApple.X, 48, 4, eBlock, eAnywhere);
oStick.Move(oApple.X, 170, 4, eBlock, eAnywhere);
cFoxyMonk.LoseInventory(iStick);
oApple.Move(oApple.X, 180, 4, eBlock, eAnywhere);
oApple.Baseline = 0;
Display("Good shot! The apple falls out of the tree and lands on the ground with a thud.");
}
}
}
If I go and make oStick = True a comment i.e // oStick = True so that the stick remains invisible, and try to move it, the game becomes non responsive like it entered a long thinking loop.
Any Ideas what could be causing this?