Posted: 4th Dec 2011 13:40
Now my game can run in windows, but the images are in the same folder with template.exe . I want to put images in a folder named Image, it will look clear. How to do that?
Posted: 4th Dec 2011 14:24
i use tier 1 but should work the same in tier 2 ?

Tile_IMG = LoadImage ( "GFX/Tiles_Sheet.png" )

simply give the name an extension like this.

"GFX/Tiles_Sheet.png"

It should work for you.
Posted: 4th Dec 2011 14:30
@cliff, Thank you. Yes ,it works. But the problem is that there are so many images in my game. about 400 images. It will take a lot of time to change the code. Is there a easy way?
Posted: 4th Dec 2011 14:54
Use:
integer = SetCurrentDir( "images" )

Returns 1 if folder exists.


Or find the equivalent in T2
Posted: 4th Dec 2011 15:14
@Digital Awakening, It really works. Thank you very much.
Posted: 4th Dec 2011 16:04
You are welcome