Hi! I again have the same problem in bgt. So when i launch the game and choose the start game, it exits. Here is the code. Please write me the right version:
#include "dynamic_menu.bgt"
void main()
{
show_game_window("Frissi");
tts_voice voice;
dynamic_menu menu;
menu.allow_escape=true;
menu.wrap=true;
menu.add_item_tts("Classic");
menu.add_item_tts("Exit");
int choice;
choice=menu.run("Choose",true);
if(choice==1)
{
start_game();
}
}
void start_game()
{
tts_voice voice;
while(key_down(KEY_ESCAPE))
{
int score=144;
if(key_pressed(KEY_RIGHT))
{
score=3;
voice.speak_wait("Oh troll");
}
}
}