Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: luke_scoffield on December 17, 2001, 02:42:24 AM

Title: Logic code for AGI Studio
Post 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?
Title: Re: Logic code for AGI Studio
Post by: Chris Cromer on December 17, 2001, 05:14:43 AM
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.
Title: Re: Logic code for AGI Studio
Post by: brian corr on December 17, 2001, 06:30:59 PM
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);
 }

Title: Re: Logic code for AGI Studio
Post by: luke_scoffield on December 18, 2001, 01:26:49 AM
;D
Thanks very much, I should have what I need now.