Error in BGT
Hi all.
In two cases, the error appears in the game.
Code:
if (key_pressed (KEY_ESCAPE))
{
s.destroy_all ();
for (int i = 0; i <5; i ++)
{
enemies (i) .e.destroy_all ();
enemies.remove_at (i);
}
mainmenu ();
}
Error:
Call stack size: 3
File: D: \ Warrior Adventure \ game.bgt
Line: 60 (1)
Function: void l1 ()
File: D: \ Warrior Adventure \ includes \ menu.bgt
Line: 24 (1)
Function: void mainmenu ()
File: D: \ Warrior Adventure \ game.bgt
Line: 21 (1)
Function: void main ()
Code:
if (hp <= 0)
{
for (int i = 0; i <5; i ++)
enemies.remove_at (i);
s.destroy_all ();
dlgplay ( "k" + random (1,4) + "wav.");
mainmenu ();
}
Error:
Call stack size: 4
File: D: \ Warrior Adventure \ game.bgt
Line: 75 (19)
Function: void l1 ()
File: D: \ Warrior Adventure \ includes \ menu.
bgt
Line: 24 (1)
Function: void mainmenu ()
File: D: \ Warrior Adventure \ includes \ menu.bgt
Line: 30 (1)
Function: void mainmenu ()
File: D: \ Warrior Adventure \ game.bgt
Line: 21 (1)
Function: void main ()
[] Replaced by (), as the forum does not accept.
Help me please!
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector