Community
AGI Programming => Mega Tokyo AGI Archive => Topic started 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.
-
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. :-\
-
I looked around in the help file at the display commands, can't find anything specific. What does print.at do?
-
Give me a few minuted, I did this in the intro for a version of V... just need to examine my old code.
-
Set flag 15 to enable other action while text-box is on. To close text box use close.window-command.
-
Found it:
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]
-
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.
-
Heh, that didn't even work for me ::)
-Kon-Tiki-
-
is v21 a user defined variable, or was it all ready set by agi studio?
-
Thanks for the help, when I put this in my game, I'll let you know how it went.
-
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.
-
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. :-\
-
Nope there isn't.
-
Thanks for that code i also needed it :)
(also thanks Corby for putting the question up)
-
do we have something against define names?
-
I dont think so , do you?
-
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? ::)
-
sorry i thot he was talking about the agi thing defined variables.
-
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).