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 - Mugs

#21
I need a MIDI to WAV, MP3 or OGG converter that would convert the exact length of the song.Ã,  I have a MIDI converter, but it adds a half second to the end. This would cause a small gap in the music for my adventure game.

:) Thank you.
#22
It seems that a certain script(TypeLine) is messing up my cursor. The script repeats the wait function over and over again, which means the cursor doesn't get the change to display the next frame. Ã, 


There's nothing much I can do about it. Ã, 

Thanks anyways.
#23
Okay, I know what's going on.Ã,  While animating, it goes up to the 5th frame and then it goes back to the 1st one.Ã,  My animation contains 11 frames.Ã,  How can I make the animation go further than 5 frames, and how can I make it loop.
#24
I've tried making the cursor animate before, and it doesn't work.Ã, 

#25
Is there any way to make the "wait" cursor animate?  I've searched everywhere and I can't seem to find a solution.
#26
I can hear sound, but I can't see the text.
#27
This is what I have:

Code: ags

function TypeLine(const string line) {

Ã,  
Ã,  int length=0;
Ã,  int i = 0;
Ã,  string displayedline_new;
Ã,  string displayedline_old;

Ã,  int textid = 0;

Ã,  length = 0;Ã,  
Ã,  i=0; 
Ã,  StrCopy(displayedline_old," ");
Ã,  length=StrLen(line); //set string length
Ã,  while(i<length){
Ã,  Ã,  StrCopy(displayedline_new, displayedline_old);
Ã,  Ã,  StrFormat(displayedline_new, "%s%c", displayedline_old, StrGetCharAt(line,i)); 
Ã,  Ã,  i++;
Ã,  Ã,  text.SetText(displayedline_new);
Ã,  Ã,  PlaySound(1);
Ã,  Ã,  Wait(5);
Ã,  }
Ã,  return textid;
} 


The game types each letter one by one,Ã,  but they type on top of eachother, which means, only one letter appears at a time.

What did I do wrong?
#28
Alright, I got rid of that problem.

But now I get this:

in Global Script
Error (line 13) type 'string' is no longer supported; use 'String' instead.

I know I can't just replace the letter 's' for an 'S'. That would give me:

Type mismatch: cannot convert 'String' to 'string'
#29
I once had a dream where my 2 brothers and I had different superpowers.

My older brother had the power to shoot superbeams from his hands.Ã,  He was able to destroy the world if he wanted to.Ã, 

My younger brother had the common elastic power.Ã,  He would use his stretching arms to fight supervillains from far far away.

As for me, I had the extreme, exciting, superpower to dislocate my arms and legs!Ã,  Hurray!!!!Ã, 
#30
Thanks again, KhrisMUC

:-X Now let's test it...

??? Damn...

:( Error (line 10): Type mismatch: cannot convert 'const string' to 'string'

Any solutions?
#31
Alright,

I do not know how to use the typeline function, at all.Ã,  I am displaying text using a label inside of a GUI, like so:


textlabel.SetText("This is called text!");


Can anyone tell me what to do in order make a simple typewriting effect.

P.S. I've seen the original Typeline function before.


#32
Quote from: Mugs on Thu 16/03/2006 22:35:18
Almost!

If I click once, the GUI turns off.Ã,  The game executes all three wait_clicks at the same time.



Solved it!Ã,  I inserted...

function noloopcheck wait_unclick() {
Ã,  while (mouse.IsButtonDown(eMouseLeft)) Wait(1);
}

...in the global script.

Then I did the following:

Code: ags

gDisplay.Visible = true;
Labelname.SetText("Hello.");
wait_click();
Labelname.SetText("My name is Joe.");
wait_unclick();
wait_click(); 
Labelname.SetText("I like Jell-O.");
wait_unclick();
wait_click();
gDisplay.Visible = false;


Thanks for all the help!!!!
#33
Almost!

If I click once, the GUI turns off.Ã,  The game executes all three wait_clicks at the same time.

#34
I'm not quite sure where this is going.Ã,  What does (!Mouse.IsButtonDown(eMouseLeft)) Wait(1); have to do with what I'm trying to do?Ã,  The function probably makes sense , but I don't know what to do with it.

Basically, I'm having a GUI appear with a label inside it. I want so that every time the user clicks on the screen, the label changes it's caption.
I want to be able to do this multiple times in the game.

Code: ags

gDisplay.Visible = true;
Labelname.SetText("Hello.");
//Then the user clicks 
Labelname.SetText("My name is Joe.");
//Then the user clicks 
Labelname.SetText("I like Jell-O.");
//Then the user clicks 
gDisplay.Visible = false;


#35
There's just one problem. PauseGame doesn't pause the scripts.

For example,

Code: ags

gDisplay.visible = true; 
PauseGame();
gDisplay.visible = false; 


Even if the game is "paused", the script will go on and close gDisplay.

I want the game to await the player's click before closing gDisplay.
#36
General Discussion / Re: Best illusion ever
Thu 16/03/2006 07:32:07
I built three of 'em.
#37
Is there a way to pause the script until the player or user clicks?

I am looking for a function similar to WaitMouseKey, without the timeloops.
#38
Great game!Ã,  The puzzles were basically the same as in BJ, but the humour is what makes it a completely new game!

;) Thumbs up!

#39
Best idea: bush_monkey
Best design: biothlebop
Best functionality: gameboy
Best technique: bush_monkey
#40
Day of the Living Dead

Ghosts are dead.
SMF spam blocked by CleanTalk