Thank you for all this info. I'll make the changes and get back to the tester for more details.
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 Menu//x = mouse.x + 10;
//y = mouse.y + 10;
if (x + gGui9.Width > System.ViewportWidth)
x = System.ViewportWidth - gGui9.Width;
if (y + gGui9.Height > System.ViewportHeight)
y = System.ViewportHeight - gGui9.Height;
x = mouse.x + 10;
y = mouse.y + 10;
if (x < 0)
x = 0;
if (x + gGui9.Width > Screen.Width)
x = Screen.Width - gGui9.Width;
if (y < 0)
y = 0;
if (y + gGui9.Height > Screen.Height)
y = Screen.Height - gGui9.Height;
gGui9.SetPosition(x, y); // <---- notice how SetPosition is using previously calculated x and y
#sectionstart repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {
// put anything you want to happen every game cycle here
//Old cursor logic
// if (GetLocationType(mouse.x,mouse.y) > 0) {
// if(Mouse.Mode!=eModeUseinv) mouse.UseModeGraphic(eModePointer);}
// else {
// Mouse.UseDefaultGraphic(); }
//Old cursor logic end
//New cursor logic
if (GetLocationType(mouse.x,mouse.y) != eLocationNothing) {
if(Mouse.Mode!=eModeUseinv) {
// if (player == cWoman) Mouse.UseModeGraphic(eModeDapHandU);
if ((player == cWoman) && (!IsGamePaused())) Mouse.UseModeGraphic(eModeDapHandU);
// if (player == cWoman) Mouse.ChangeModeGraphic(eModeInteract, 485);
// if (player == cMan) Mouse.UseModeGraphic(eModePointer); } }
if ((player == cMan) && (!IsGamePaused())) Mouse.UseModeGraphic(eModePointer); } }
// if (player == cMan) Mouse.ChangeModeGraphic(eModeInteract, 16); } }
else { Mouse.UseDefaultGraphic (); }
//New cursor logic end
if (player == cWoman) {
StrFormat(herscore," Puzzles: %d",GetGlobalInt(10));
ScoreHer.SetText(herscore);
ScoreHer.TextColor = cWoman.SpeechColor; }
if (player == cMan) {
StrFormat(hisscore," Puzzles: %d",GetGlobalInt(20));
ScoreHim.SetText(hisscore);
ScoreHim.TextColor = cMan.SpeechColor; }
// x = mouse.x + 20;
// y = mouse.y + 20;
// if (x - gGui9.Width > 320) {
// x = 320 - gGui9.Width; }
// if (y - gGui9.Height > 200) {
// y = 200 - gGui9.Height; }
// gGui9.SetPosition(mouse.x, mouse.y);
if (x < 0)
x = 0;
if (x + gGui9.Width > Screen.Width)
x = Screen.Width - gGui9.Width;
// if (mouse.y > 240/2) y = mouse.y - 20;
// else y = mouse.y+10;
// if (mouse.x > 320/2) x = mouse.x - 20;
// else x = mouse.x+10;
// gGui9.SetPosition(mouse.x, mouse.y);
if (player == cWoman) {
charcolor.TextColor = cWoman.SpeechColor; }
if (player == cMan) {
charcolor.TextColor = cMan.SpeechColor; }
if(gGui1.Visible) {
if( mouse.x < gGui1.X - CLOSING_DISTANCE
|| mouse.x > gGui1.X + gGui1.Width + CLOSING_DISTANCE
|| mouse.y < gGui1.Y - CLOSING_DISTANCE
|| mouse.y > gGui1.Y + gGui1.Height + CLOSING_DISTANCE)
gGui1.Visible = false;
gGui3.Visible = true;
}
if (player.ActiveInventory == icigarbox) mouse.ChangeModeGraphic (eModeUseinv, 46);
else if (player.ActiveInventory == ijarcinn) mouse.ChangeModeGraphic (eModeUseinv, 295);
else if (player.ActiveInventory == ijargarlic) mouse.ChangeModeGraphic (eModeUseinv, 296);
else if (player.ActiveInventory == ijarcloves) mouse.ChangeModeGraphic (eModeUseinv, 297);
else if (player.ActiveInventory == imatch) mouse.ChangeModeGraphic (eModeUseinv, 371);
else if (player.ActiveInventory == ipicklejar) mouse.ChangeModeGraphic (eModeUseinv, 248);
else if (player.ActiveInventory == icuestick) mouse.ChangeModeGraphic (eModeUseinv, 262);
else if (player.ActiveInventory == irifle) mouse.ChangeModeGraphic (eModeUseinv, 292);
else if (player.ActiveInventory == imousetrap) mouse.ChangeModeGraphic (eModeUseinv, 259);
else if (player.ActiveInventory == imusicbook) mouse.ChangeModeGraphic (eModeUseinv, 254);
else if (player.ActiveInventory == icowboyhat) mouse.ChangeModeGraphic (eModeUseinv, 258);
else if (player.ActiveInventory == ioars) mouse.ChangeModeGraphic (eModeUseinv, 286);
else if (player.ActiveInventory == itape) mouse.ChangeModeGraphic (eModeUseinv, 277);
else if (player.ActiveInventory == iislandpic) mouse.ChangeModeGraphic (eModeUseinv, 390);
else if (player.ActiveInventory == ikey) mouse.ChangeModeGraphic (eModeUseinv, 284);
else if (player.ActiveInventory == igrisgris) mouse.ChangeModeGraphic (eModeUseinv, 134);
else if (player.ActiveInventory == igrisspice) mouse.ChangeModeGraphic (eModeUseinv, 135);
else if (player.ActiveInventory == iknife) mouse.ChangeModeGraphic (eModeUseinv, 383);
else if (player.ActiveInventory == iberyl) mouse.ChangeModeGraphic (eModeUseinv, 301);
else if (player.ActiveInventory == icheese) mouse.ChangeModeGraphic (eModeUseinv, 370);
else if (player.ActiveInventory == iTeacup) mouse.ChangeModeGraphic (eModeUseinv, 391);
else if (player.ActiveInventory == ibourbon) mouse.ChangeModeGraphic (eModeUseinv, 281);
else if (player.ActiveInventory == isugarcubes) mouse.ChangeModeGraphic (eModeUseinv, 52);
else if (player.ActiveInventory == ijulepglass) mouse.ChangeModeGraphic (eModeUseinv, 283);
else if (player.ActiveInventory == icompletejulep) mouse.ChangeModeGraphic (eModeUseinv, 55);
else if (player.ActiveInventory == ipitcher) mouse.ChangeModeGraphic (eModeUseinv, 279);
else if (player.ActiveInventory == imint) mouse.ChangeModeGraphic (eModeUseinv, 60);
else if (player.ActiveInventory == igrstopper) mouse.ChangeModeGraphic (eModeUseinv, 69);
else if (player.ActiveInventory == ipinkstopper) mouse.ChangeModeGraphic (eModeUseinv, 70);
else if (player.ActiveInventory == igrstopperbg) mouse.ChangeModeGraphic (eModeUseinv, 71);
else if (player.ActiveInventory == ipinkstopper2) mouse.ChangeModeGraphic (eModeUseinv, 72);
else if (player.ActiveInventory == isoap) mouse.ChangeModeGraphic (eModeUseinv, 400);
else if (player.ActiveInventory == ieasel) mouse.ChangeModeGraphic (eModeUseinv, 261);
else if (player.ActiveInventory == istone) mouse.ChangeModeGraphic (eModeUseinv, 267);
else if (player.ActiveInventory == ivoodoodoll) mouse.ChangeModeGraphic (eModeUseinv, 271);
else if (player.ActiveInventory == ifurniture) mouse.ChangeModeGraphic (eModeUseinv, 273);
else if (player.ActiveInventory == isetvoodoo) mouse.ChangeModeGraphic (eModeUseinv, 275);
else if (player.ActiveInventory == ipeppermint) mouse.ChangeModeGraphic (eModeUseinv, 290);
else if (player.ActiveInventory == iteapepper) mouse.ChangeModeGraphic (eModeUseinv, 407);
else if (player.ActiveInventory == igemstones) mouse.ChangeModeGraphic (eModeUseinv, 408);
else if (player.ActiveInventory == igemstonesc) mouse.ChangeModeGraphic (eModeUseinv, 408);
}
#sectionend repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
if (mouse.y > 240/2) y = mouse.y - 10;
else y = mouse.y+10;
if (mouse.x > 320/2) x = mouse.x -10;
else x = mouse.x+10;
gGui9.SetPosition(mouse.x, mouse.y);
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.065 seconds with 13 queries.