problem with animate background (Solved)

Started by fitbo, Wed 15/03/2006 22:10:12

Previous topic - Next topic

fitbo

Hey, I have a problem, and I don't see the solution. The player is in a room with a lamp, that the player can turn on and off, and also with a roller shutter, that the player either can close half or close completely. The lamp is an object, and the roller shutter is a different background frame. Everything works fine in the room, but when I leave, and then enter the room again, the background frames are changing all the time and the lamp is constantly going on and off. I want that the background remains the same, after the player reenters the room,so that the roller shutter is still rolled down and the light is still on.

Please, some help

scourge

When you enter in the room interactions (before fadein) try using the setBackgroundFrame() function. for example:

Code: ags

if (shutter_closed) setBackgroundFrame(0);
else setBackgroundFrame(1);


SMF spam blocked by CleanTalk