Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: pakolmo on Mon 28/11/2016 05:25:05

Title: Room corrupted?
Post by: pakolmo on Mon 28/11/2016 05:25:05
When I test the game I have a room all in black. (with music).
It has background and objects. The objects have animations, but all is in black.
Is my room corrupt?
Title: Re: Room corrupted?
Post by: Slasher on Mon 28/11/2016 05:52:24
Possibility:

if you put a 'blocking' element in room load (like animation block) it loops and the room will not fade in...

Example
Code (ags) Select

function room_Load()
{
osmoke.SetView(29);
osmoke.Animate(0, 3, eRepeat, eBlock);
}
Title: Re: Room corrupted?
Post by: pakolmo on Mon 28/11/2016 06:02:05
Now is solved. I was putting the code in Room_Load, now is in room_FirstLoad.