Hey! How do I insert a animated background, but only if the player click on the hotspot first? And, after showing that animated background, how I change for the next room?
My code:
function hHotspot2_Look()
{
if (change_bg)
SetBackgroundFrame(0);
if (change_bg2)
SetBackgroundFrame(1);
if (change_bg3)
SetBackgroundFrame(2);
if (change_bg4)
SetBackgroundFrame(3);
if (change_bg5)
SetBackgroundFrame(4);
else player.ChangeRoom(8);
}
function room_AfterFadeIn()
{
SetBackgroundFrame(0);
Thanks!
My code:
function hHotspot2_Look()
{
if (change_bg)
SetBackgroundFrame(0);
if (change_bg2)
SetBackgroundFrame(1);
if (change_bg3)
SetBackgroundFrame(2);
if (change_bg4)
SetBackgroundFrame(3);
if (change_bg5)
SetBackgroundFrame(4);
else player.ChangeRoom(8);
}
function room_AfterFadeIn()
{
SetBackgroundFrame(0);
Thanks!