Quote from: monkey_05_06 on Sat 30/05/2015 19:26:06
FWIW, I don't think (IIRC) AGS allows assignment inside of a condition. Could be wrong about that though.
Sorry, what do you mean by that? I'm slightly confused?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: monkey_05_06 on Sat 30/05/2015 19:26:06
FWIW, I don't think (IIRC) AGS allows assignment inside of a condition. Could be wrong about that though.
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;
}
}
function CarbonsOffice_OnClick(GUIControl *control, MouseButton button)
{
dCarbonOffice.Start;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.069 seconds with 14 queries.