Hi,
When I run my game in the editor, it works fine. When I export it to a Windows executable, it doesn't work in two places.
Firstly, in an actor collision, this snippet of code should play a sound:
...
noise=rand(3)+1;
sprintf(soundname,"data/sounds/jarnoise_%d.wav",noise);
PlaySound(soundname,1,1);
It does in-editor, but not in the export.
Also, on the end screen I display the number of creatures you caught, positioning them in special positions. These are shown in-editor, but don't appear in the exported version
VisibilityState("Bug", ENABLE);
if (Score.textNumber > 0) {CreateActor("Bug", "anim", "(none)", "(none)", 579, 174, true);}
if (Score.textNumber > 1) {CreateActor("Bug", "anim", "(none)", "(none)", 560, 180, true);}
if (Score.textNumber > 2) {CreateActor("Bug", "anim", "(none)", "(none)", 536, 183, true);}
if (Score.textNumber > 3) {CreateActor("Bug", "anim", "(none)", "(none)", 577, 144, true);}
if (Score.textNumber > 4) {CreateActor("Bug", "anim", "(none)", "(none)", 562, 150, true);}
if (Score.textNumber > 5) {CreateActor("Bug", "anim", "(none)", "(none)", 537, 153, true);}
if (Score.textNumber > 6) {CreateActor("Bug", "anim", "(none)", "(none)", 561, 115, true);}
if (Score.textNumber > 7) {CreateActor("Bug", "anim", "(none)", "(none)", 553, 122, true);}
if (Score.textNumber > {CreateActor("Bug", "anim", "(none)", "(none)", 524, 131, true);}
view.x=480;
view.y=0;