|
Multi important topic Displaying 1-4 of 4 total.
1
jesusfreak
|
hi hello;
[1]. I am thinking ( trying to think up ) a shopping system, but I am having problems. I tried to make one, but the problem was, I could not get out of the forsaken thing.. could some one help me out here??
like would Render(); or something help...
[2]. I often download games to give them a test Run, but I see PCX files, with a CHR's images, or a pcx with images on them that are cell-spaced. How would I go about calling one of the "TILES" in VC code??
and also, how would I animate one?
any help would be Genral CoolNess!!
... OI have been deprived of my mountain few :( my mommy will not get it today!! she make igor angry!!
Posted on 2001-01-02 01:29:53
|
Feyr
|
1) Err...I'm not sure I know what you're talking about. Here's an answer to what you might be asking ;) If you need a simple way to set up shops, try getting my menu code from the Verge Source files section. When you talk to a shopkeeper, open a menu with the list of options (Buy, Sell, Exit). If the player chooses Buy, open another menu with the list of stuff they can buy, and let the player pick from the list. You can use the choice they make to determine how much gold to take away and which items to give them.
If you know of any other menu code, you could use that as well, of course ;) I can't recall just how hard my menu scripts are to use, but being newbie-friendly has always been my second priority when coding. Good luck.
2) To the best of my not very current knowledge, you can't use PCX images directly in the game...you have to run them through utilities such as BMP2VSP or PCX2CHR, etc. I seem to vaguely remember being able to load images into MapEd to get a tileset... The explanation for the images in downloaded games may be lazy authors not cleaning up their games before sending them off, or nice authors sharing the fruits of their labor with anyone who wants it ;)
--Feyr promises to download V2 sooner or later, to give more definitive answers at least =)
Posted on 2001-01-02 06:16:35
|
jesusfreak
|
na na na na, hey hey hey.
... OI have been deprived of my mountain few :( my mommy will not get it today!! she make igor angry!!
Posted on 2001-01-02 14:39:52
|
andy
|
v2 and up load PCXs, BMPs and GIFs.
v2.6 loads PNGs as well.
void DoSomethingUseless()
{
int img;
img=LoadImage("stuff.pcx");
copysprite(50,50,image_width,image_height,img);
free(img);
}
'Never confuse a single defeat with a final defeat.' -F. Scott Fitzgerald
Posted on 2001-01-02 21:20:33
|
Displaying 1-4 of 4 total.
1
|
|