Community
AGI Programming => Mega Tokyo AGI Archive => Topic started by: luke_scoffield on December 17, 2001, 02:42:24 AM
-
:-/
OK guys, I'm making an game in AGI Studio. I've got most of the basics for the logic code, but what do I need to do to get my ego to change view for one cycle in response to an input command?
-
Use this to change the ego to the view number of your choice:
load.view(n);
set.view(o0,n);
n needs to be set the the view number you want to use.
Use this to change the ego back to his regular view:
load.view(0);
set.view(o0,0);
hope this helps you.
-
i suppose you mean one cycle of the view, not one interpreter cycle...
if not ignore this
what you should do is this:
if(said("blah blah")){
load.view(n); //n is the number of the view
set.view(o0,n);
set.loop(o0,l); //l is the loop number
end.of.loop(o0,f100) //you can use any flag you want
}
if(f100){
load.view(0);
set.view(o0,0);
reset(f100);
}
-
;D
Thanks very much, I should have what I need now.