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.

AppGameKit Classic Chat / SetFolder Problem

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 30th Jan 2015 21:11 Edited at: 1st Feb 2015 14:52
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



global-items.agc



puzzle-horse.agc



Please Guide Me to fix this Problem.

Thanks.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Jan 2015 22:07
SetFolder("\media\images\items")

You need the first "\" to start at the root folder again.

Quidquid latine dictum sit, altum sonatur
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 1st Feb 2015 05:27
Thanks BatVink.

but there is new Problem. I call two function at main.agc but run only first Function.
Jambo B
15
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 1st Feb 2015 13:29
main.agc looks like it should call both functions. Are you missing a CreateSprite() command in puzzle-horse.agc?

James
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 1st Feb 2015 14:48
Quote: "main.agc looks like it should call both functions. Are you missing a CreateSprite() command in puzzle-horse.agc?"


in my original code I created a sprite a in puzzle-horse.agc but only show first call function in main.agc.
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 2nd Feb 2015 10:58
there is any solution?
Rickynzx
12
Years of Service
User Offline
Joined: 19th Dec 2011
Location: Troon, Scotland
Posted: 2nd Feb 2015 19:14
The second function never runs because you have do loop in the first one, it never leaves first function.

Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd Feb 2015 05:29
Quote: "The second function never runs because you have do loop in the first one, it never leaves first function."


right, thanks Rickynzx.

Login to post a reply

Server time is: 2024-11-25 16:34:31
Your offset time is: 2024-11-25 16:34:31