Author Topic: VIEW Artisting---Then inserting it into my game!!  (Read 7142 times)

0 Members and 3 Guests are viewing this topic.

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #15 on: July 23, 2002, 11:42:37 PM »
Well, I will have to send it in a minute, it is on my downstairs computer---back in a few...

SMG240


Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #16 on: July 23, 2002, 11:46:33 PM »
// ****************************************************************
//
// Logic 10
//
// ****************************************************************

#include "defines.txt"
#define man o10

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

animate.obj(o10);
load.view(23);
set.view(o10,23);
set.loop(o10,0);
set.cel(o10,0);
position(o10,132,63);
ignore.horizon(o10);
ignore.blocks(o10);
ignore.objs(o10);
wander(o10);
draw(o10);



 //ADD ADDITIONAL INITIALIZATION CODE HERE

 if (prev_room_no == 3)
 {
   position(o0, 8, 88);
 }

 if (prev_room_no == 9)
 {
   position(o0, 78, 166);
 }
 if (prev_room_no == 12)
 {
   position(o0, 79, 19);
 }

 if (prev_room_no == 11)
 {
   position(o0, 158, 84);
    }
   }


 draw(o0);
 show.pic();


if (ego_edge_code == horizon_edge)
{
 //ADD ADDITIONAL HORIZON EXIT CODE HERE
 new.room(12);
}

if (ego_edge_code == bottom_edge)
{
 //ADD ADDITIONAL BOTTOM EXIT CODE HERE
 new.room(9);
}

if (ego_edge_code == left_edge)
{
 //ADD ADDITIONAL LEFT EXIT CODE HERE
 new.room(3);
}

if (ego_edge_code == right_edge)
{
 //ADD ADDITIONAL RIGHT EXIT CODE HERE
 new.room(11);
}
if (f2 && unknown_word_no == 0 && !f2)
{  if (said("look"))
 {
   print("You see a crossroads.");
  }

if (said("speak")) {
 print("Do you have a sword?");
 print("Hint: Say YES or NO");
}
 if (said("Yes")) {
 erase(o0);
 erase(o10);
 load.view(48);
 set.view(o0,48);
 set.loop(o0,3);
 load.view(49);
 set.view(o10,49);
 set.loop(o10,0);
 move.obj(o0,100,105,1,f60);
 move.obj(o10,105,105,1,f61);
 animate.obj(o0);
 animate.obj(o10);
 end.of.loop(o0,f62);
 end.of.loop(o10,f63);
}
if (f62){
 start.cycling(o0);
}
if (f63){
 erase(o10);
 load.view(50);
 set.view(o10,50);
 load.sound(50);
 sound(50,f64);
}
if (f64){
 erase(o10);
 get(i8);
 set.view(o0,0);
}

if (said("no")) {
 print("Come see me when you do.");
}
}

return();

Thats it... I am off to bed now.... it is 11:47 here!!

I really appreciate this.

SMG240


Offline Chris Cromer

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #17 on: July 23, 2002, 11:57:06 PM »
It was just as I though, use this:

Code: [Select]
// ****************************************************************
//
// Logic 10
//
// ****************************************************************

#include "defines.txt"
#define man o10

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

animate.obj(o10);
load.view(23);
set.view(o10,23);
set.loop(o10,0);
set.cel(o10,0);
position(o10,132,63);
ignore.horizon(o10);
ignore.blocks(o10);
ignore.objs(o10);
wander(o10);
draw(o10);



 //ADD ADDITIONAL INITIALIZATION CODE HERE

 if (prev_room_no == 3)
 {
   position(o0, 8, 88);
 }

 if (prev_room_no == 9)
 {
   position(o0, 78, 166);
 }
 if (prev_room_no == 12)
 {
   position(o0, 79, 19);
 }

 if (prev_room_no == 11)
 {
   position(o0, 158, 84);
   }
   }


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

if (ego_edge_code == horizon_edge)
{
 //ADD ADDITIONAL HORIZON EXIT CODE HERE
 new.room(12);
}

if (ego_edge_code == bottom_edge)
{
 //ADD ADDITIONAL BOTTOM EXIT CODE HERE
 new.room(9);
}

if (ego_edge_code == left_edge)
{
 //ADD ADDITIONAL LEFT EXIT CODE HERE
 new.room(3);
}

if (ego_edge_code == right_edge)
{
 //ADD ADDITIONAL RIGHT EXIT CODE HERE
 new.room(11);
}
if (f2 && unknown_word_no == 0 && !f2)
{  if (said("look"))
 {
   print("You see a crossroads.");
 }

if (said("speak")) {
 print("Do you have a sword?");
 print("Hint: Say YES or NO");
}
 if (said("Yes")) {
 erase(o0);
 erase(o10);
 load.view(48);
 set.view(o0,48);
 set.loop(o0,3);
 load.view(49);
 set.view(o10,49);
 set.loop(o10,0);
 move.obj(o0,100,105,1,f60);
 move.obj(o10,105,105,1,f61);
 animate.obj(o0);
 animate.obj(o10);
 end.of.loop(o0,f62);
 end.of.loop(o10,f63);
}
if (f62){
 start.cycling(o0);
}
if (f63){
 erase(o10);
 load.view(50);
 set.view(o10,50);
 load.sound(50);
 sound(50,f64);
}
if (f64){
 erase(o10);
 get(i8);
 set.view(o0,0);
}

if (said("no")) {
 print("Come see me when you do.");
}

return();
Chris Cromer

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

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #18 on: July 24, 2002, 09:10:42 AM »
DAMN CHRIS!!!
lol
i thought i knew how to help him. lol
anyway.
smg240, tell us if it works

-joey

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #19 on: July 24, 2002, 10:28:16 AM »
Ok... I will try it out now!!

(I see you have 2 stars now Joey! Great job!)

SMG240


Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #20 on: July 24, 2002, 10:40:44 AM »
Well... Um... it did the same thing as before...

the } on line 55 said that it wasn't at the end of and command blocks, so I had to move it to the bottom...

???

SMG240


Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #21 on: July 24, 2002, 10:58:33 AM »
what do the stars mean?

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #22 on: July 24, 2002, 11:04:35 AM »
the code should work.....
well im goin to the rainforest resteraunt.
ill review the code after.
oh and a message to everyone:
Date Quest 2 is about 20% done. screen shots are posted at http://joekool224.tripod.com
only 1 is there now but more shall be there by the end of the day.

Offline Chris Cromer

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #23 on: July 24, 2002, 11:40:12 AM »
Hmmm that should have fixed it, the problem I found was that it was in the new_room if and if it is in there then it would only be called once and not work... there must be another bug in the code if it didn't work.
Chris Cromer

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

Offline Chris Cromer

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #24 on: July 24, 2002, 11:52:39 AM »
Alright, I have done you a favor and have searched the code, formatted it, and fixed it. This is a possitive fix, I have checked it thouroughly and fixed 2 other bugs which where in the code I gave you earlier(and in the code you posted).

Code: [Select]
// ****************************************************************
//
// Logic 10
//
// ****************************************************************

#include "defines.txt"
#define man o10

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

 animate.obj(o10);
 load.view(23);
 set.view(o10,23);
 set.loop(o10,0);
 set.cel(o10,0);
 position(o10,132,63);
 ignore.horizon(o10);
 ignore.blocks(o10);
 ignore.objs(o10);
 wander(o10);
 draw(o10);

 //ADD ADDITIONAL INITIALIZATION CODE HERE

 if (prev_room_no == 3)
 {
   position(o0, 8, 88);
 }

 if (prev_room_no == 9)
 {
   position(o0, 78, 166);
 }

 if (prev_room_no == 12)
 {
   position(o0, 79, 19);
 }

 if (prev_room_no == 11)
 {
   position(o0, 158, 84);
 }

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

if (ego_edge_code == horizon_edge)
{
 //ADD ADDITIONAL HORIZON EXIT CODE HERE
 new.room(12);
}

if (ego_edge_code == bottom_edge)
{
 //ADD ADDITIONAL BOTTOM EXIT CODE HERE
 new.room(9);
}

if (ego_edge_code == left_edge)
{
 //ADD ADDITIONAL LEFT EXIT CODE HERE
 new.room(3);
}

if (ego_edge_code == right_edge)
{
 //ADD ADDITIONAL RIGHT EXIT CODE HERE
 new.room(11);
}

if (said("look")) {
 print("You see a crossroads.");
}

if (said("speak")) {
 print("Do you have a sword?");
 print("Hint: Say YES or NO");
}

if (said("Yes")) {
 erase(o0);
 erase(o10);
 load.view(48);
 set.view(o0,48);
 set.loop(o0,3);
 load.view(49);
 set.view(o10,49);
 set.loop(o10,0);
 move.obj(o0,100,105,1,f60);
 move.obj(o10,105,105,1,f61);
 animate.obj(o0);
 animate.obj(o10);
 end.of.loop(o0,f62);
 end.of.loop(o10,f63);
}

if (said("no")) {
 print("Come see me when you do.");
}

if (f62){
 start.cycling(o0);
}

if (f63){
 erase(o10);
 load.view(50);
 set.view(o10,50);
 load.sound(50);
 sound(50,f64);
}

if (f64){
 erase(o10);
 get(i8);
 set.view(o0,0);
}

return();
Chris Cromer

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

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #25 on: July 24, 2002, 11:59:43 AM »
Ok Thanks! I will giveit a whirl!!
SMG240  ;D


Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #26 on: July 24, 2002, 02:03:05 PM »
Code: [Select]
// ****************************************************************
//
// Logic 10
//
// ****************************************************************

#include "defines.txt"
#define man o10

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

 animate.obj(o10);
 load.view(23);
 set.view(o10,23);
 set.loop(o10,0);
 set.cel(o10,0);
 position(o10,25,149);
 ignore.horizon(o10);
 ignore.blocks(o10);
 ignore.objs(o10);
 draw(o10);

 //ADD ADDITIONAL INITIALIZATION CODE HERE

 if (prev_room_no == 3)
 {
   position(o0, 8, 88);
 }

 if (prev_room_no == 9)
 {
   position(o0, 78, 166);
 }

 if (prev_room_no == 12)
 {
   position(o0, 79, 19);
 }

 if (prev_room_no == 11)
 {
   position(o0, 158, 84);
 }

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

if (ego_edge_code == horizon_edge)
{
 //ADD ADDITIONAL HORIZON EXIT CODE HERE
 new.room(12);
}

if (ego_edge_code == bottom_edge)
{
 //ADD ADDITIONAL BOTTOM EXIT CODE HERE
 new.room(9);
}

if (ego_edge_code == left_edge)
{
 //ADD ADDITIONAL LEFT EXIT CODE HERE
 new.room(3);
}

if (ego_edge_code == right_edge)
{
 //ADD ADDITIONAL RIGHT EXIT CODE HERE
 new.room(11);
}

if (said("look")) {
 print("You see a crossroads.");
}

if (said("speak")) {
 print("Do you have a sword?");
 print("Hint: Say YES or NO");
}

if (said("Yes")) {
 load.view(48);
 load.view(49);
 load.view(50);
 load.sound(50);
 position(o0,20,149);
 position(o10,25,149);
 erase(o0);
 set.view(o0,48);
 draw(o0);
 set.loop(o0,0);
 set.view(o10,49);
 set.loop(o10,0);
 start.cycling(o0);
 start.cycling(o10);
 animate.obj(o0);
 set.dir(o0,v3);
 animate.obj(o10);
 animate.obj(o0);
 animate.obj(o10);
 stop.cycling(o0);
 stop.cycling(o10);
 end.of.loop(o0,f50);
 end.of.loop(o10,f51);
}
if(f50) {
 erase(o0);
 animate.obj(o0);
 animate.obj(o0);
 animate.obj(o0);
 set.view(o0,0);
 get(i8);
 draw(o0);
}
if(f51) {
 erase(o10);
 start.cycling(o10);
 animate.obj(o10);
 animate.obj(o0);
 animate.obj(o0);
 stop.cycling(o10);
 load.view(50);
 set.view(o10,50);
 draw(o10);
}
if (said("no")) {
 print("Come see me when you do.");
}

return();


I re wrote this using what Chris had fixed and I put some things in to get it how I wanted and I came up with this!  There are only 4 things I need help on after this had been written.

1. I can say yes infinite number of times... I only need it once!!

2. I am trying to put v3 += 3; (for adding points) in there but every where I put it, the counter shoots up ti 275 and goes back to zero continueously (sp?).

3. When I say "YES" the Ego goes to a new position but there is a shell of him left where I said YES. i can walk over the shell and it dissappears.

4. My EGO anly animates when I move him in a direction. I want it to animate by itself while o10 is animating!

THanks for helping me guys.

SMG240


Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #27 on: July 24, 2002, 02:42:27 PM »
I had the same problem in date quest 2.
i forget the code i did cause its up stairs on my pc.
that should work though. ummmm.......
let me go get the code. ill send it to u in a couple min.

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #28 on: July 24, 2002, 02:48:25 PM »
if (said("use spray")) {
  if (has("breath spray")) {
  print("Ok.");
  v3 += 2;
  print("You quickly run into the grass, where no one is looking and apply the spray.");
  program.control();
  erase(o0);
  animate.obj(o5);
  load.view(5);
  set.view(o5,5);
  set.cel(o5,0);
  set.loop(o5,0);
  draw(o5);
  start.cycling(o5);
  end.of.loop(o5,f230);

}
  else {
    print("You don't have it.");
    }
}
  if (f230) {
  print("No wonder that breath spray was only 99 cents. Your all out already.");
  print("Atleast you'll have good breath for the rest of the game.");
  drop("breath spray");
  player.control();
  erase(o5);
  load.view(0);
  set.view(o0,0);
  position(o0,6,61);
  draw(o0);
  player.control();
  accept.input();
  reset(f230);
}




this code worked for me, but you'll have to change some stuff for your game.

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #29 on: July 25, 2002, 11:12:03 AM »
// ****************************************************************
//
// Logic 10
//
// ****************************************************************

#include "defines.txt"
#define man o10

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

 animate.obj(o10);
 load.view(23);
 set.view(o10,23);
 set.loop(o10,0);
 set.cel(o10,0);
 position(o10,25,149);
 ignore.horizon(o10);
 ignore.blocks(o10);
 ignore.objs(o10);
 draw(o10);

 //ADD ADDITIONAL INITIALIZATION CODE HERE

 if (prev_room_no == 3)
 {
   position(o0, 8, 88);
 }

 if (prev_room_no == 9)
 {
   position(o0, 78, 166);
 }

 if (prev_room_no == 12)
 {
   position(o0, 79, 19);
 }

 if (prev_room_no == 11)
 {
   position(o0, 158, 84);
 }

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

if (ego_edge_code == horizon_edge)
{
 //ADD ADDITIONAL HORIZON EXIT CODE HERE
 new.room(12);
}

if (ego_edge_code == bottom_edge)
{
 //ADD ADDITIONAL BOTTOM EXIT CODE HERE
 new.room(9);
}

if (ego_edge_code == left_edge)
{
 //ADD ADDITIONAL LEFT EXIT CODE HERE
 new.room(3);
}

if (ego_edge_code == right_edge)
{
 //ADD ADDITIONAL RIGHT EXIT CODE HERE
 new.room(11);
}

if (said("look")) {
 print("You see a crossroads.");
}

if (said("speak")) {
 print("Do you have a sword?");
 print("Hint: Say YES or NO");
}

if (said("Yes")) {
 if(f89){
 print("you already fought him");
}
 else {
 program.control();
 load.view(48);
 load.view(49);
 load.view(50);
 load.sound(50);
 position(o0,20,149);
 position(o10,25,149);
 erase(o0);
 set.view(o0,48);
 draw(o0);
 set.loop(o0,0);
 set.view(o10,49);
 set.loop(o10,0);
 start.cycling(o0);
 start.cycling(o10);
 animate.obj(o0);
 set.dir(o0,v3);
 animate.obj(o10);
 animate.obj(o0);
 animate.obj(o10);
 stop.cycling(o0);
 stop.cycling(o10);
 end.of.loop(o0,f50);
 end.of.loop(o10,f51);
 set(f89);
}
}
if(f50) {
 erase(o0);
 animate.obj(o0);
 animate.obj(o0);
 animate.obj(o0);
 set.view(o0,0);
 get(i8);
 draw(o0);
}
if(f51) {
 erase(o10);
 start.cycling(o10);
 animate.obj(o10);
 animate.obj(o0);
 animate.obj(o0);
 stop.cycling(o10);
 load.view(50);
 set.view(o10,50);
 draw(o10);
}
if (said("no")) {
 print("Come see me when you do.");
}

return();


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

Page created in 0.055 seconds with 21 queries.