Hey. I've become stuck on some coding as I can't see how to solve an error.
Here's my code
Code: ags
And the error is the following: "Failed to save room room3.crm; details below
room3.asc(52): Error (line 52): expected '('"
Cheers for your help in advance,
alphadalekben
Here's my code
function room_RepExec()
{
if (IsKeyPressed(eKeyM))
{
SetBackgroundFrame(1);
blues.Visible = false;
RemoveWalkableArea(1);
hLounge.Enabled = true;
}
if (IsKeyPressed(eKeyN))
{
SetBackgroundFrame(0);
RestoreWalkableArea(1);
blues.Visible = true;
hLounge.Enabled = false;
}
//mirror
if (IsKeyPressed(eKeyJ) && BgMirrored == 1)
{
BgMirrored += 1;
}
if (IsKeyPressed(eKeyJ) && BgMirrored == 2)
{
BgMirrored -= 1;
}
if (BgMirrored == 1 && SetBackgroundFrame == 0)
{
SetBackgroundFrame == 2;
}
if (BgMirrored == 2 && SetBackgroundFrame == 1)
{
SetBackgroundFrame == 3;
}
}
And the error is the following: "Failed to save room room3.crm; details below
room3.asc(52): Error (line 52): expected '('"
Cheers for your help in advance,
alphadalekben