Re: Error in BGT

2016-11-09 Thread AudioGames . net Forum — Developers room : lukas via Audiogames-reflector
Re: Error in BGT Sorry, my original answer was a bit rushed, but what I meant was that you have the following loop:for(int i=0; i<5; i++){enemies(i).e.destroy_all();enemies.remove_at(i);}It should look like this instead:for(int i=0; i<5; i++){enemies(0).e.destroy_all();enemies.remov

Re: Error in BGT

2016-10-31 Thread AudioGames . net Forum — Developers room : springrosqdp via Audiogames-reflector
Re: Error in BGT If you don't want to spend a fortune opening cases, there is another option to get keys. Using Free CSGO Ak47 Skins you can get CS:GO keys for taking surveys online. Later on, you'll be able to buy/trade for keys easily with your profits, but this site is great

Re: Error in BGT

2016-10-30 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
Re: Error in BGT You can give an example?Array I have written is correct? URL: http://forum.audiogames.net/viewtopic.php?pid=284605#p284605 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Error in BGT

2016-10-30 Thread AudioGames . net Forum — Developers room : lukas via Audiogames-reflector
Re: Error in BGT Try decrementing the counter ("i--;") in the for loop where you destroy enemy sounds. I mean the very first for loop right at the top when escape is pressed.Lukas URL: http://forum.audiogames.net/viewtopic.php?pid=2846

Re: Error in BGT

2016-10-30 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
Re: Error in BGT Main file:sound_pool s;int x=1;int hp;timer step;enemy@[] enemies(0);void main(){show_game_window("Warrior Adventure");set_sound_decryption_key("ILoveKids", true);set_sound_storage("sounds.dat");install_keyhook();wait(1000);dlgplay("logo.

Re: Error in BGT

2016-10-30 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
Re: Error in BGT Main file:sound_pool s;int x=1;int hp;timer step;enemy@[] enemies(0);void main(){show_game_window("Warrior Adventure");set_sound_decryption_key("ILoveKids", true);set_sound_storage("sounds.dat");install_keyhook();wait(1000);dlgplay("logo.

Re: Error in BGT

2016-10-30 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
Re: Error in BGT class enemy{int health;int speed;int position;bool died;sound_pool e;timer steper;timer firer;enemy(){health=100;speed=300;position=random(30,150);died=false;}void move(){if(died==false){if(position{if (steper.elapsed>speed){e.play_1d("step1_"+random(1

Error in BGT

2016-10-30 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
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: 3File: D: \ Warrior Adventure \ game.bgtLine: 60