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

Messages - Dorcan

#161
Or easier :
RawDrawImage (int x, int y, int slot)
#162
A little function will be useful in this case, something like :

function AddInventorySound(int what){
   AddInventory(what);
   PlaySound(1);
}
#163
Well there is 2 pages in my tutorial, and the second one explain the functions.
You must have missed the button I think... Oh I know! I haven't translated "Page suivante" which means "Next page". I'll change the look, it's not very clear. :P

http://host.deluxnetwork.com/~dorcan/script.php?id=7&page=2

Edit : Ok, I have made it, now it should be obvious that there are several pages.
#164
A little mistake  ::) (corrected on my website):

function StartGUIAnimation ( int GUI, int Button, int Which, int GUIView )  {
int I=0;
int K=-1;
     while  ( I < MaxAnim )   {
          if  (  ( guianim [ I ] .gui == GUI ) && ( guianim [ I ] .button==Button ) && ( guianim [ I ] .which==Which )  )   {
           K=I;        //instead of K=GUI
           ...

Tell me if you find a bug
#165
I made a script that may help you animating a GUI Button. It works fine for me
I suggest you to download the source code.

Here is the tutorial link :
http://host.deluxnetwork.com/~dorcan/script.php?id=7&langue=en
#166
Advanced Technical Forum / Re:Database in AGS
Fri 20/06/2003 14:02:30
Just make an effort to understand.
Otherwise, Give up, man. Learn how to program, and then maybe you will understand those scripts. For the moment, making a databse seems too difficult for you.
#168
I don't think it's that complicated :P

function FileReadRawLine(int handle, string text){
char c;
int I=0;
     StrCopy(text,"");
   
     while (FileIsEOF(handle) == 0 && I!=-1) {
         c = FileReadRawChar (handle);
          if (c==13) {
               FileReadRawChar(handle);
               I=-1;
          } else {
               StrSetCharAt(text,I,c);
               I++;
          }
     }
}


function test() {
string text;

     int handle = FileOpen ("test.txt", FILE_READ);
     while (FileIsEOF(handle) == 0) {
          FileReadRawLine(handle, text);
          Display("%s",text);
     }
 
}


With the FileReadRawLine function, you can read each line of a .txt file.
Take a look at how I made the test function

Just display each line of text with the RawPrint function in your room file.
#169
I juste have made a function FindStr(str1, str2).
It's case insensitive.

http://host.deluxnetwork.com/~dorcan/script.php?langue=en&id=5
#170
Well that's strange... There should be only one cookie : When your register at my website, and you aren't even obliged to...

Ok, I give you the link to download my testgame source :

http://host.deluxnetwork.com/~dorcan/fichiers/tutoriaux/dms_gkdialog.zip

Unfortunaltly, I don't know any other tutorials for what you ask.
#171
http://host.deluxnetwork.com/~dorcan/script.php?langue=en&id=2

Edit: Mmh I haven't finished translating this tutorial... But you can download the test game source code.
#173
function ChangeStrCase(string str){
   char S;
   StrToUpperCase(str);
   S=StrGetCharAt (str,0);
   StrToLowerCase(str);
   StrSetCharAt(str,0,S);
}
#174
You just have to modify the game.following_room_timer variable.

From the manual :
game.following_room_timer
How long to wait before following char emerges in new room, default 150. (higher is longer).

#175
Maybe you could try something with the PlayAmbientSound (int channel, int sound, int volume, int x, int y) function...
But you also can create a stereo sound with some programs like WavLab or something else, and import it in AGS.
#176
General Discussion / Re:The Matrices
Sat 17/05/2003 05:32:57
Quote from: Evil_away on Sat 17/05/2003 04:48:47
Quote me if I am wrong but isn't Animatrix the original that started the Matix?
#177
General Discussion / Re:The Matrices
Fri 16/05/2003 15:23:58
I think this movie was great, both graphics and plot. As I went to a special Matrix evening (Matrix 1 + Matrix 2), it was easier to understand the story in Matrix 2 (the Architect's speech for exemple).
Well, I prefered the first one, but Matrix 2 is also a good movie.

Spoiler
Quotewhy can agent smith duplicate himself? and why is the duplicated but real life agent smith
Don't forget that agents aren't human. They are programs made by machines.
As the Matrix's an operating system, we can see the agent smith as a bugged program (because of Neo) which turned into an informatic virus.
Well, that's what I think.
[close]
#178
Scorpiorus : I don't know if it's still the case, but the problem with an older version is that interface_click wasn't allways called when using the on_event() function with GUI_MDOWN or GUI_MUP. I don't really know why, but it was annoying to click and that sometimes nothing happened.
Oh and I think there was another reason, but I wrote this script weeks ago and I don't remember what it was.  ::)
#179
I have a little tutorial on my (unfinished) website :

http://host.deluxnetwork.com/~dorcan/script.php?id=1&page=1&langue=en

Add also this code in the repeatedly_execute function:

if (GetInvAt (mouse.x, mouse.y)!=-1)
   SetCursorMode(CURSORMODE);

SMF spam blocked by CleanTalk