I have noticed a strange behavior with SPR_setDepth method, it not working with SPR_setDepth(arrObjects[carryIndex_p1], SPR_MIN_DEPTH);.
Why the barrel is not over Goofy?
Video on Youtube
https://youtu.be/G1yp5I6KRA0
Thank you!
Code: Select all
Sprite *arrObjects[20];
Sprite *arrBridge[2];
Sprite *arrRope[4];
SPR_setDepth(arrBridge[0], SPR_MAX_DEPTH);
SPR_setDepth(arrBridge[1], SPR_MAX_DEPTH);
SPR_setDepth(arrRope[0], SPR_MIN_DEPTH);
SPR_setDepth(arrRope[1], SPR_MIN_DEPTH);
SPR_setDepth(arrRope[2], SPR_MIN_DEPTH);
SPR_setDepth(arrRope[3], SPR_MIN_DEPTH);
SPR_setDepth(gun_p1, SPR_MIN_DEPTH);
SPR_setDepth(arrPlayers[0], SPR_MIN_DEPTH);
if (carryIndex_p1 != EMPTY)
{
carryObject(0, carryIndex_p1);
SPR_setDepth(arrObjects[carryIndex_p1], SPR_MIN_DEPTH);
}