Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Corby on May 02, 2003, 02:00:51 AM

Title: Yet another question (Text Boxes)
Post by: Corby on May 02, 2003, 02:00:51 AM
How do you have a text message on the screen and have at the same time, animation occuring? I was thinking about using this for dialogue. Is this possible? I'm sure I've seen it somewhere.
Title: Re:Yet another question (Text Boxes)
Post by: Chris Cromer on May 02, 2003, 04:05:32 AM
Yes it is possible... I can't remember the exact code to do it at the moment... I really need to start working in AGI more. :-\
Title: Re:Yet another question (Text Boxes)
Post by: Corby on May 02, 2003, 04:25:00 AM
I looked around in the help file at the display commands, can't find anything specific. What does print.at do?
Title: Re:Yet another question (Text Boxes)
Post by: Chris Cromer on May 02, 2003, 04:26:02 AM
Give me a few minuted, I did this in the intro for a version of V... just need to examine my old code.
Title: Re:Yet another question (Text Boxes)
Post by: Sami Tervo on May 02, 2003, 04:32:15 AM
Set flag 15 to enable other action while text-box is on. To close text box use close.window-command.
Title: Re:Yet another question (Text Boxes)
Post by: Chris Cromer on May 02, 2003, 04:38:49 AM
Found it:

Code: [Select]
set(f15);
v21 = 10;
print("message");

This shoud do it. :)

Just change 10 to a higher or lower number depending on how long you want the window to stay open.

[EDIT]I modified my code, I accidentally put reset instead of set.[/EDIT]
Title: Re:Yet another question (Text Boxes)
Post by: Oliver on May 02, 2003, 05:09:03 AM
I looked around in the help file at the display commands, can't find anything specific. What does print.at do?

Print.at means that you can print the text on some position.
Title: Re:Yet another question (Text Boxes)
Post by: Kon-Tiki on May 02, 2003, 12:39:17 PM
Heh, that didn't even work for me ::)

-Kon-Tiki-
Title: Re:Yet another question (Text Boxes)
Post by: Joey on May 02, 2003, 06:44:02 PM
is v21 a user defined variable, or was it all ready set by agi studio?
Title: Re:Yet another question (Text Boxes)
Post by: Corby on May 03, 2003, 02:35:44 AM
Thanks for the help, when I put this in my game, I'll let you know how it went.
Title: Re:Yet another question (Text Boxes)
Post by: Chris Cromer on May 03, 2003, 11:43:18 AM
is v21 a user defined variable, or was it all ready set by agi studio?

v21 isn't used by AGI Studio. ::) None of the variable are used by AGI Studio. ;) They are used by the AGI Interpreter ;)

And yes v21 is used by the AGI interpreter it determines the ammount of time the text window should stay open(for a dialog box) then closes it after the time in v21 is up.

Kon-tiki, make sure that you got my latest code, I modified it yesterday when I noticed that I used reset instead of set on f15. And yes it does work... although I only tried it in NAGI since AGI doesn't work in XP.
Title: Re:Yet another question (Text Boxes)
Post by: Joey on May 03, 2003, 05:23:46 PM
ok genious. ;)
also, is there a variable the INTERPRETER uses for a timer? i always run into trouble where i need a timer, and i really dont want to make my own. :-\
Title: Re:Yet another question (Text Boxes)
Post by: Chris Cromer on May 03, 2003, 06:11:55 PM
Nope there isn't.
Title: Re:Yet another question (Text Boxes)
Post by: Zero on May 11, 2003, 10:57:49 AM
Thanks for that code i also needed it :)
(also thanks Corby for putting the question up)
Title: Re:Yet another question (Text Boxes)
Post by: Joel on May 12, 2003, 05:37:32 PM
do we have something against define names?
Title: Re:Yet another question (Text Boxes)
Post by: Zero on May 12, 2003, 06:00:11 PM
I dont think so , do you?
Title: Re:Yet another question (Text Boxes)
Post by: Chris Cromer on May 12, 2003, 06:25:48 PM
He wasn't refering to you. ::)

Do you even know what he was talking about? Or where you just replying for the sake of it? ::)
Title: Re:Yet another question (Text Boxes)
Post by: Zero on May 12, 2003, 06:28:32 PM
sorry i thot he was talking about the agi thing defined variables.
Title: Re:Yet another question (Text Boxes)
Post by: Joel on May 12, 2003, 11:08:15 PM
that is what I was talking about, but you never posted anything related to define names. I was referring to using f15 instead of windows_remain and v21 instead of window_close_time (and using f0 instead of ego_on_water in another thread).