Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Parabola on August 30, 2002, 07:33:50 PM

Title: Picture on Picture?
Post by: Parabola on August 30, 2002, 07:33:50 PM
i have noticed in some games (Dave's Quest, Goldrush) that there apear to be picture files with something like a tree that end up on top of another picture in the game. like the cut away stairwell in Dave's Quest.

Could someone please explain this technique or point me in the direction of some info about it? thanx :-\
Title: Re:Picture on Picture?
Post by: Chris Cromer on August 30, 2002, 08:10:17 PM
It is really simple to do:

Code: [Select]
   v38 = x;
    load.pic(v38);
    overlay.pic(v38);
    discard.pic(v38);
    show.pic();

Just change x to the picture you want to overlay over your current pic.

All it does is draw the new pic on the old pic.
Title: Re:Picture on Picture?
Post by: Parabola on August 30, 2002, 08:14:53 PM
thanx for that chris :)
Title: Re:Picture on Picture?
Post by: Andrew_Baker on August 31, 2002, 01:13:40 AM
In fact, if you're really clever, you can create multiple pic files that when used in different combinations, can create a polynomially greater number of total pictures.

EX:

----------------------------
| **** ** *****   *(*|
|  **       **      ***    |
----------------------------
night pic (upper half)
----------------------------
|   -*-                         |
|   /|\                          |
----------------------------
day pic (upper half)
----------------------------
|/\/\/\/\/\/\/\/\/\/\/\/\/\|
----------------------------
mountains (lower half)

This is a small and crappy example, but you could use these three pics to make the mountains be under a day-time or night-time sky.  With additional lower-half pics, the same day or night sky would double the possibilities.  Just a suggestion.
Title: Re:Picture on Picture?
Post by: Kon-Tiki on August 31, 2002, 06:06:55 AM
Wow, never knew that was possible. That certainly saves a lot of time