Thanks for taking the time to answer, just interested is all. Considering AGS was started by Mr. Jones in 1997 it's probably long overdue for an overhaul :-) Not underestimating the amount of work it takes (as I'm a programmer by trade).
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 Menufunction on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
{
if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
{
}
else if (button == eMouseLeft)
{
if( gPieMain01.Visible == false )
{
gPieMain01.SetPosition( mouse.x - (gPieMain01.Width / 2), mouse.y - (gPieMain01.Height / 2) );
if( gPieMain01.X < -44 ) gPieMain01.X = -44;
if( gPieMain01.Y < 60 - 44 ) gPieMain01.Y = 60 - 44;
if( gPieMain01.X + gPieMain01.Width - 44 > 640 ) gPieMain01.X = (640 - gPieMain01.Width) + 44;
if( gPieMain01.Y + gPieMain01.Height - 44 > 420 ) gPieMain01.Y = (420 - gPieMain01.Height) + 44;
gPieTextOverlay.X = gPieMain01.X - 64;
gPieTextOverlay.Y = gPieMain01.Y - 64;
//if( (gPieMain01.Y + gPieMain01.Height) > 420 ) gPieMain01.Y = 420 - gPieMain01.Height;
gPieMain01.Visible = true;
gPieTextOverlay.Visible = true;
startx = gPieMain01.X + (gPieMain01.Width / 2);
starty = gPieMain01.Y + (gPieMain01.Height / 2);
}
else
{
pieOption = subOption;
if( mouse.x > (gPieMain01.X + 54) && mouse.x < ( (gPieMain01.X + gPieMain01.Width) - 54) )
{
if( mouse.y > (gPieMain01.Y + 54) && mouse.y < ( (gPieMain01.Y + gPieMain01.Height) - 54) )
{
pieOption = 0;
}
}
clear_screen();
gPieMain01.Visible = false;
gPieTextOverlay.Visible = false;
cEgo.Walk(mouse.x + GetViewportX(), mouse.y + GetViewportY());
ProcessClick(startx, starty, eModeInteract);
}
}
}
function hPainting_AnyClick()
{
}
function hCrystalBall_AnyClick()
{
}
function oPainting_AnyClick()
{
if(pieOption == 0)
{
}
else
if(pieOption == 11) // look at
{
if( lookAtCount == 0)
{
lookAtCount++;
cEgo.Say("It's a painting of a top-down view of the room.");
}
else
if( lookAtCount == 1)
{
lookAtCount++;
cEgo.Say("This was taken...er..painted before a few additions,");
cEgo.Say(" like the rocking chair and the giant crystal ball.");
}
else
if( lookAtCount == 2)
{
lookAtCount++;
cEgo.Say("So it's actually a painting of a rug!");
cEgo.Say("I love that rug.");
cEgo.Say("Of course this was also before the rug was moved in front of the fireplace.");
}
else
{
int randLook = Random(2);
if(randLook == 0)
cEgo.Say("You don't need me to describe it for you!");
else
if(randLook == 1)
cEgo.Say("You've already seen the painting.");
else
if(randLook == 2)
cEgo.Say("It's the same painting you've looked at several times before.");
}
}
}
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.047 seconds with 14 queries.