Author Topic: AGI Tutorial  (Read 5243 times)

0 Members and 1 Guest are viewing this topic.

Offline Seb

AGI Tutorial
« on: February 02, 2002, 10:07:14 AM »
Please do not flame me for posting this but I would really appreciate if someone had a AGI Tutorial on the logic and sound. I'm making a game and I would like to learn its logic commands. I  seen some of the commands and do not look to compicated. Kinda like C :).

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



Offline Chris Cromer

Re: AGI Tutorial
« Reply #1 on: February 02, 2002, 03:06:35 PM »
Welcome Seb.

Try this link and you will see a list of AGI Turorials. Including my own. ;D

http://www.mega-tokyo.com/cgi-bin/yabb/YaBB.pl?board=SIERRA_GAMES;action=display;num=995847022

Hey Nick maybe you should make the tutorial list sticky so it stays at the top for everyone to read. The same goes for the AGI game list.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

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

Offline Seb

Re: AGI Tutorial
« Reply #2 on: February 02, 2002, 04:32:53 PM »
Does anyone have a copy of this?

Tutorial Game - A game created by Peter Kelly which is great for those learning AGI.

I tried to download the one of agisci.cjb.net but it's not there  >:(
Can anyone send it to me at scooter_6969@hotmail.com.

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

Offline Nick Sonneveld

Re: AGI Tutorial
« Reply #3 on: February 02, 2002, 07:09:17 PM »
I was thinking about it but I didn't want to annoy people with all these stickies everywhere.  The best compromise I could think of was one single sticky post, with links to the other threads.

what do you think?

- Nick
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Nick Sonneveld  |  AGI Dev  |  NAGI

Offline Chris Cromer

Re: AGI Tutorial
« Reply #4 on: February 02, 2002, 08:07:00 PM »
Quote
Does anyone have a copy of this?

Tutorial Game - A game created by Peter Kelly which is great for those learning AGI.

I tried to download the one of agisci.cjb.net but it's not there
Chris Cromer

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

Offline Seb

Re: AGI Tutorial
« Reply #5 on: February 03, 2002, 08:51:11 AM »
Does anyone have PICEDIT? agisci.cjb.net desn't have it and lost of the links givin' to me don't have a working download of it. Sorry if I'm getting demanding. I'm just motivated cause I'm getting the hang of it.

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

Offline robingravel

Re: AGI Tutorial
« Reply #6 on: February 03, 2002, 09:59:49 AM »
You can find picedit on my site.

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

Offline Chris Cromer

Re: AGI Tutorial
« Reply #7 on: February 03, 2002, 10:47:21 AM »
Hey Robin you should probably give him a link so he knows where to go.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

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

Offline robingravel

Re: AGI Tutorial
« Reply #8 on: February 03, 2002, 11:47:21 AM »
Because Seb cannot click on the house icon below the Naturette's picture?

Here we go:
http://agisite.multimania.com/agisite.htm

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

Offline Seb

Re: AGI Tutorial
« Reply #9 on: February 03, 2002, 12:51:02 PM »
Found it. I'm using all the info given to me but I still cant create a new object that works. I got a paper and all that happens when I say "take paper" is that he takes the only working object in the tutorial, the radio. Can anyone tell me whats wrong. Here's the code.

Quote

// ****************************************************************************
//
// Logic 2: Item tutorial room
//
// ****************************************************************************

#include "defines.txt"

#define radio o1

#define paper o2


if (new_room) {
 load.pic(room_no);
 draw.pic(room_no);
 discard.pic(room_no);
 set.horizon(50);

 animate.obj(radio);
 load.view(2);
 set.view(radio,2);
 set.loop(radio,0);
 set.cel(radio,0);
 set.cel(radio,0);
 position(radio,43,104);
 set.priority(radio,11);
 ignore.objs(radio);
 stop.cycling(radio);
 v255 = 2;
 if (obj.in.room("portable radio",v255)) { draw(radio); }

 animate.obj(paper);
 load.view(5);
 set.view(paper,5);
 set.loop(paper,0);
 set.cel(paper,0);
 position(paper,49,118);
 set.priority(paper,11);
 ignore.objs(paper);
 stop.cycling(paper);
 draw(paper);


 // The next 6 lines need only be in the first room of the game
 if ((prev_room_no == 1 ||    // just come from intro screen
     prev_room_no == 0)) {    // or just started game
   position(ego,120,140);
   status.line.on();
   accept.input();
 }

 if (prev_room_no == 3) {
   position(ego,150,114);
 }

 draw(ego);
 show.pic();
}

if (said("look")) {
 print("This is the room for the item tutorial.");
}

if (said("get","radio")) {
 v255 = 2;
 if (obj.in.room("portable radio",v255)) {
   if (posn(ego,37,111,51,124)) {
     print("Ok.");
     erase(radio);
     get("portable radio");
   }
   else {
     print("You're not close enough.");
   }
 }
 else {
   reset(input_parsed);    // let logic 90 take care of it
 }
}

if (said("look","radio")) {
 v255 = 2;
 if (obj.in.room("portable radio",v255)) {
   print("There is a portable radio sitting on the bench.");
 }
 else {
   reset(input_parsed);    // let logic 90 take care of it
 }
}



if (said("take","paper")) {
 v250 = 2;
 if (obj.in.room("prep. papers",v250)) {
   if (posn(ego,37,111,51,124)) {
   print("Sure.");
   erase(paper);
   get("prep. papers");
 }
 else {
   print("You're not close enough.");
 }
 }
 else {
   reset(input_parsed); // let logic 90 take care of it
 }
}

if (said("look","paper")) {
 v250 = 2;
 if (obj.in.room("Prep. Papers",v250)) {
   print("There is the Prep. Papers hung under the bench.");
 }
 else {
   reset(input_parsed);    // let logic 90 take care of it
 }
}

if (ego_edge_code == left_edge) {    // ego touching right edge of screen
 new.room(3);
}

return();


Seb

Offline Chris Cromer

Re: AGI Tutorial
« Reply #10 on: February 03, 2002, 03:07:55 PM »
First of all the paper is not drawn on the screen, have you drawn it yet? Secondly is the word list have the word paper in it and in a new group? And thirdly did you create the object in the object editor.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

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

Offline Seb

Re: AGI Tutorial
« Reply #11 on: February 03, 2002, 03:45:45 PM »
Yes, yes and yes. But now when I says "get paper" he says "You can't get that now!".

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

Offline Chris Cromer

Re: AGI Tutorial
« Reply #12 on: February 03, 2002, 04:06:48 PM »
According to the code you put there the paper is not drawn on the screen unless you drew it in place of the radio. Second of all you need to change v250 to v255 like the other one has.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

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

Offline robingravel

Re: AGI Tutorial
« Reply #13 on: February 03, 2002, 04:37:13 PM »
I'm too late to help Seb but for everyone else, I fixed the broken links on my site.

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

Offline Chris Cromer

Re: AGI Tutorial
« Reply #14 on: February 03, 2002, 04:43:55 PM »
Seb:
If your still looking for picedit it is included with the AGI Studio file on my web site at my web site at http://www.agi.zzn.com It is in the AGI Utilities section.

Robin:
I didn't know there was any broken links on your site. Well glad their fixed I visit it every now and then to see if you have any new AGI games.
« Last Edit: December 31, 1969, 07:00:00 PM by 1018072800 »
Chris Cromer

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


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

Page created in 0.053 seconds with 22 queries.