Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ibispi on Sun 02/02/2014 12:34:32

Title: [SOLVED]Having difficulties with object.MergeIntoBackground() function
Post by: Ibispi on Sun 02/02/2014 12:34:32
Code (ags) Select

//I'm trying to do:
oSnow.MergeIntoBackground();
/*,where oSnow is an object I want to merge into the background.
I have a problem though;
Since the background is animating, the object is merged only into a one of four backgrounds that exist in the room.
I'd like to merge it into all four of those backgrounds, but I don't know how.
Help! */
Title: Re: Having difficulties with object.MergeIntoBackground() function
Post by: Khris on Sun 02/02/2014 17:54:46
Just do this instead:
Code (ags) Select
  oSnow.Clickable = false;
  oSnow.Baseline = 1; // display behind everything else


This should be a sufficient workaround, drawing it onto all background frames is possible but convoluted.
Title: Re: Having difficulties with object.MergeIntoBackground() function[SOLVED]
Post by: Ibispi on Sun 02/02/2014 18:09:47
I had no idea that ".Clickable" function existed, and that is what I was looking for! 8-0
Thank you Khris, you rock! :smiley: :cool: