Hi.
I created two .agc file and in each i used setfolder() for custom file Path. but after run,show me black screen.Problem is relate to used two SetFolder() command but I don't know how can fix it.
this is my code:
main.agc
#include "global-items.agc"
#include "puzzle-horse.agc"
SetDisplayAspect( -1 )
//global variables
global dim ItemImage[2]
global dim ItemSprite[2]
global ItemEmptySprite as Integer
global ItemName as String
global HorsePlaneSprite as Integer
global HorsePlaneImage as Integer
global dim HorseImage[6]
global dim HorseSprite[12]
global ImageName as String
global HorseEmptySprite as Integer
global MouseJoint as Integer
global count as Integer
global click as Integer
global dim joint[6]
global dim TureFalseSound[3]
CreateItems()
CreateHorse()
do
Sync()
loop
global-items.agc
//Create Global Items
Function CreateItems()
SetFolder("")
SetFolder("media\images\items")
//Load Images
ItemImage[1] = LoadImage("item-1.png")
CreateSprite (ItemImage[1])
do
sync()
loop
EndFunction
puzzle-horse.agc
Function CreateHorse()
SetFolder("")
SetFolder("media\images\horse")
HorsePlaneImage = LoadImage("horse-plane.png")
CreateSprite(HorsePlaneImage )
do
sync()
loop
EndFunction
Please Guide Me to fix this Problem.
Thanks.