Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: HandsFree on Sun 25/12/2011 22:11:24

Title: unable to merge object
Post by: HandsFree on Sun 25/12/2011 22:11:24
Cat reported a crash in my game: room38 line 5 Error: MergeObject: unable to merge object due to color depth differences.
She used DirectDraw 5 while I tested with Direct 3D 9.

The code for room 38 is:
function room_AfterFadeIn()
{
oTownsquare.MergeIntoBackground();// this is line 5
Wait(40);
...
}

Is there anything I can do to prevent this?
thanks
Title: Re: unable to merge object
Post by: monkey0506 on Mon 26/12/2011 00:44:56
Yes, you can import an object sprite and a room background that are the same color depth. :P
Title: Re: unable to merge object
Post by: HandsFree on Mon 26/12/2011 00:55:04
I have no idea what color depth is. That's way I made a RON game, so I could just use existing art. :)
However, this background is completely black (end credits) so I think I've probably not used a background picture at all.
Does it makes sense that the oTownsquare.MergeIntoBackground (when there is no background) works with Direct 3D 9 but not with DirectDraw 5?