I want to animate the backgrounds not an image, but only for one cycle.
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 SetGlobalInt(360,0);
SetGlobalInt(370,0);
SetGlobalInt(380,0);
SetGlobalInt(390,0);
SetGlobalInt(400,0);
SetGlobalInt(410,0);
}
#sectionend game_start // DO NOT EDIT OR REMOVE THIS LINE
bool wasOverActiveArea;
void HandleCursor() {
if (Mouse.Mode == eModeUseinv) return; // do nothing
bool isOverActiveArea = GetLocationType(mouse.x, mouse.y) != eLocationNothing; // compare to enum!
if (isOverActiveArea && !wasOverActiveArea) {
// mouse just moved over active area
Mouse.UseModeGraphic(eModePointer); // pointer for both
}
else if (!isOverActiveArea && wasOverActiveArea) {
// mouse just left active area
if (player == cWoman) Mouse.UseModeGraphic(eModeDapHandU);
else Mouse.UseDefaultGraphic();
} }
#sectionstart repeatedly_execute // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {
// put anything you want to happen every game cycle here
//if (GetLocationType(mouse.x,mouse.y) > 0) {
// Mouse.UseModeGraphic(eModePointer); }
// if(Mouse.Mode!=eModeUseinv) mouse.UseModeGraphic(eModePointer);}
//else if (player == cWoman) {
// mouse.UseModeGraphic(eModeDapHandU); }
//else if (player == cMan) {
// Mouse.UseDefaultGraphic(); }
HandleCursor();
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; }
function repeatedly_execute() {
// put anything you want to happen every game cycle here
if (GetLocationType(mouse.x,mouse.y) > 0) {
// Mouse.UseModeGraphic(eModePointer); }
if(Mouse.Mode!=eModeUseinv) mouse.UseModeGraphic(eModePointer);}
else {
Mouse.UseDefaultGraphic(); }
function repeatedly_execute() {
// put anything you want to happen every game cycle here
if (GetLocationType(mouse.x,mouse.y) > 0) {
// Mouse.UseModeGraphic(eModePointer); }
if(Mouse.Mode!=eModeUseinv) mouse.UseModeGraphic(eModePointer);}
else if (player == cWoman) {
mouse.UseModeGraphic(eModeDapHandU); }
else if (player == cMan) {
Mouse.UseDefaultGraphic(); }
if (player == cWoman) {
mouse.UseModeGraphic(eModeDapHandU); }
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.056 seconds with 14 queries.