Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Mon 05/06/2006 08:28:12

Title: Suggestion: mergeintobackground(#)
Post by: on Mon 05/06/2006 08:28:12
I merged object 1 to background frame 0 and object 2 to th next frame but the merge into the same one. My work around is to rawdraw object 2 on the frame I want everytime the room loads.
Title: Re: Suggestion: mergeintobackground(#)
Post by: SSH on Mon 05/06/2006 09:24:58
Merge into background just does a rawdraw, so what's the problem?
Title: Re: Suggestion: mergeintobackground(#)
Post by: on Mon 05/06/2006 11:42:59
My room animations are created from big dynamic sprites for each background frame. I give an object a sprite, setbackgound frame and merge it. After I'm done all frames I let the room aninmate. No problem yet. The background is cycling what was each different sprite. Now if I change room and return, and all the images are on the first frame and the other frames are back to empty. Is that normal?
Title: Re: Suggestion: mergeintobackground(#)
Post by: SSH on Mon 05/06/2006 12:30:53
Do you actually have multiple background frames set in that room? SetBackgroundFrame will only work if there is more than one frame in the room, otherwise it will just stay in the default frame.

Or it may be that the room state doesnt save the other frames.
Title: Re: Suggestion: mergeintobackground(#)
Post by: on Mon 05/06/2006 13:40:50
i have multible frames. Il check tomorrow if its a scroling room problem.
Title: Re: Suggestion: mergeintobackground(#)
Post by: Wretched on Mon 05/06/2006 13:49:27
I don't think AGS stores mergedintobackground data, between room calls, also worthy of note is it doesn't store it in save games either. As far as I know that is.