Menu

Show posts

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

Topics - Molin

#1
Hi all...
dont know if anybody has done this before but here i  a snippet that puts the hotspot and object test besides the mousecursor in a offset. BASS like.

define globals:
int overlay = 0, olay1;

in repeatedly_execute():
if (IsGamePaused() != 1)
{
if (GetLocationType( mouse.x, mouse.y)!=0 ){
  string buffer;
  GetLocationName(mouse.x, mouse.y, buffer);
  if (overlay == 0)
  {
   
    olay1 = CreateTextOverlay (mouse.x+5,mouse.y-10,120,1,15,buffer);
    overlay = 1;
  }
  if (overlay == 1 && IsOverlayValid(olay1)==1)
  {
    SetTextOverlay (olay1,mouse.x+5,mouse.y-10,120,1,15,buffer);
  }
}
else {
overlay = 0;
if ( IsOverlayValid(olay1)==1 ) RemoveOverlay(olay1);
}
}


/Molin
#2
Hi all,
hm  I have looked through every bit of info i could find. AM I missing something or have none asked about only having 4 views for the pathfinding?? That is, only to have the top,left,right and down directions for character movement.

Anybody has any hints or pointers on  how to do this i would appreciate it.

thx
/Molin
#3
Hi all.
im new to this editor.
THis is my first script that some might find useful.. Its a function to make a scroll down inventory similiar to that in Beneath a steel sky...
For this particular script to work without modding it you have to set the inventory height to 23.

//in game start;
SetGUIPosition(2,0,-22);

// <DM> define ui timer
int timer = -22; //timer equals the ui height -1

in repeatedly_execute;
// put anything you want to happen every game cycle here

// <DM> UI slidedown
if (mouse.y <= (timer+23))
{
 if (timer <= -1) {
   timer++; SetGUIPosition(2,0,timer);
 }
}
// <DM> UI slideup
else
{
 if (timer >= -22) {
   timer--; SetGUIPosition(2,0,timer);
 }
}

Nothing much but  a start for me anyways....
/Molin
#4
Hi all.
Im new to this editor and i like it so far.
I have some questions about scripting a few cursor and action related issues.

First of, I want to "copy" the functionality of the "Beneath a steel sky" cursor behaviour.

SO... Is there a way that one can script a global function that does this..
SetCursorMode() to swap cursorgfx and mode over hotspots. THEN change back when the user exits the hotspot.
LEFTCLICK should be "lookat" and RIGHTCLICK should be "interact/use".

Thx for any help or pointers...
ALSO i dont use the beta version of the AGS so i cant use any lucasarts GUI that you guys have posted that probably have these funtions.
SMF spam blocked by CleanTalk