Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Where to add the pictures?

Author
Message
Hayer
20
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 12th Mar 2006 09:20
Hi im pretty new to this so i have
one STUPID question... Where do i add
the pictures im gonna load in to my game?

I all ways where a flame secured armor and my shotgun... Just in case
Ian Price
20
Years of Service
User Offline
Joined: 4th Mar 2006
Location:
Posted: 12th Mar 2006 10:53
I don't know what programming language you are using, but I'm going to assume a coding language rather than a drag and drop (ClickTeam The Games Factory etc.) system.

Therefore your best bet is to have a main file/folder and within that file/folder create 3 others - GFX, SFX and DAT to hold graphics, sounds and music and data. Just make sure you put all our graphics into the "GFX" folder. Then use whatever code your language uses to load the graphics image eg.
[CODE]
LOADIMAGE("gfx\XXXXXXX.XXX"); Changing the XXX's to the name of your image
[/CODE]

Make sure you save your game into the main file/folder, otherwise it won't know where to find the "GFX" file/folder.

Old's cool
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 12th Mar 2006 11:43 Edited at: 12th Mar 2006 11:43
You can put them anywhere you want because when you load the image you specify the filename including directory. Of course, it makes sense to keep things organised, so, I would suggest placing your images in a directory called 'Media' that is in the same directory as your source code.


Login to post a reply

Server time is: 2026-07-01 21:22:28
Your offset time is: 2026-07-01 21:22:28