New to GS. Already Having problems...

Posted By: Panda_Dude

New to GS. Already Having problems... - 03/28/10 16:19

I can't run a program if it has pictures in it. When I try to run it, it says that the picture can't be opened. This happens every time, even with the downloaded sample files (in tutorials). I am using 32-bit tga files.
Anyone know what's wrong? confused
Posted By: TrackingKeks

Re: New to GS. Already Having problems... - 03/28/10 16:28

Perhaps you haven't unzipped the complete folder. Then gamestudio can't find the files.
Posted By: Panda_Dude

Re: New to GS. Already Having problems... - 03/28/10 16:33

what about with my own pictures? Do they have to be in a folder with the script or what? It does this with all pictures
Posted By: Pappenheimer

Re: New to GS. Already Having problems... - 03/28/10 16:36

Yes, they have to be in a certain folder. With PRAGMA_PATH you can include folders, look for it in the manual.
Posted By: Panda_Dude

Re: New to GS. Already Having problems... - 03/28/10 16:38

Ok. I have sorted it out, kind of. The program starts but everything is upside down. What's going on there? Is there anything wrong with the script?

#include <acknex.h>
#include <default.c>

PANEL* first_pan =
{
BMAP = "panel.tga";
pos_x = 200;
pos_y = 250;
button (100,100,"clicked.tga","normal.tga","over.tga",NULL,NULL,NULL);
flags = OVERLAY | SHOW;
}
function main ()
{
screen_size.x = 600;
screen_size.y = 600;
screen_color.green = 170;
}

And also the button doesn't change when I click it or move the mouse over it.
Posted By: Rei_Ayanami

Re: New to GS. Already Having problems... - 03/28/10 17:38

*g*
which engine version do you use?
it is known that some versions don't support it wink
Posted By: Panda_Dude

Re: New to GS. Already Having problems... - 03/28/10 18:32

i use A7.
what is *g* ?
Posted By: Rei_Ayanami

Re: New to GS. Already Having problems... - 03/28/10 18:36

nothing
which A7 Version, i mean?

please go to WED, Help -> About and tell us you version number wink
Posted By: Panda_Dude

Re: New to GS. Already Having problems... - 03/28/10 18:45

version 7.82
Posted By: Quad

Re: New to GS. Already Having problems... - 03/28/10 19:15

Originally Posted By: Panda_Dude
Ok. I have sorted it out, kind of. The program starts but everything is upside down. What's going on there? Is there anything wrong with the script?

#include <acknex.h>
#include <default.c>

PANEL* first_pan =
{
BMAP = "panel.tga";
pos_x = 200;
pos_y = 250;
button (100,100,"clicked.tga","normal.tga","over.tga",NULL,NULL,NULL);
flags = OVERLAY | SHOW;
}
function main ()
{
screen_size.x = 600;
screen_size.y = 600;
screen_color.green = 170;
}

And also the button doesn't change when I click it or move the mouse over it.


for everything upside down problem: The tool you used to create TGA files may be doing that.(saving file upside down)

for buttons doesnot change problem: set mouse_mode to 2 or 4

mouse_mode = 4;
Posted By: Panda_Dude

Re: New to GS. Already Having problems... - 03/28/10 19:23

that's sorted it. thank you for persevering with my request.
Posted By: Quad

Re: New to GS. Already Having problems... - 03/28/10 19:25

any time wink

Welcome to the community.
Posted By: gotobrain

Re: New to GS. Already Having problems... - 03/30/10 00:43

Post deleted.
© 2023 lite-C Forums