If file exists

For questions about using Classic.

Post » Sat Jul 19, 2008 9:31 pm

Hi all, is there a way to check if a file exists? I'm trying to make a game were you could optionally add a mp3 file to the same location as the exe and play it in-game. My problem is that I don't want the pause/play controls to show if no music exists.
B
2
G
4
Posts: 15
Reputation: 1,080

Post » Sun Jul 20, 2008 2:53 pm

Insert the File object and use its 'File exists' condition.
Scirra Founder
B
382
S
223
G
85
Posts: 23,989
Reputation: 189,525


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests