Author Topic: Logic code for AGI Studio  (Read 1895 times)

0 Members and 1 Guest are viewing this topic.

luke_scoffield

  • Guest
Logic code for AGI Studio
« 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?
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »



Offline Chris Cromer

Re: Logic code for AGI Studio
« Reply #1 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.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

brian corr

  • Guest
Re: Logic code for AGI Studio
« Reply #2 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);
 }

« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »

luke_scoffield

  • Guest
Re: Logic code for AGI Studio
« Reply #3 on: December 18, 2001, 01:26:49 AM »
;D
Thanks very much, I should have what I need now.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.052 seconds with 22 queries.