Re: my test bgt game dont work.
Re: my test bgt game dont work. @6 ah, yeah. Missed that. URL: https://forum.audiogames.net/post/570453/#p570453 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. And does the == belong in the creature int there? Thought that was only for if's?And Ty you forgot the Brace after void main() URL: https://forum.audiogames.net/post/570445/#p570445 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. And does the == belong in the creature int there? Thought that was only for if's? URL: https://forum.audiogames.net/post/570445/#p570445 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. A few things.You missed a paren, and a brace. You don't want return in a loop... and it's void main, not int main, so it would error anyways. Here.#include "sound_pool.bgt";string ver="0.0 beta"; // mismatched quotes and missing semicolon, plus it has to be declared before it is used.void main() {show_game_window("test attacking game v"+ver+int creaturehp==100while (!key_pressed(KEY_SPACE) { // I'm not sure you understand what this does. Means you have to keep pressing the space bar when the program opens or it'll die. So, I made it be, one, the correct syntax, and removed spaces. p.play_stationary("hit.ogg",false);creaturehp--; // Subtracts from creaturehp, which I think is what you want?if(creaturehp==0) {p.play_stationary("end.ogg", false);exit();}wait(5);}}OK. So. I don't think you read the manual very carefully. Function names can not! And I MEAN NOT! Contains spaces! You don't put quotes around the varname, around the value, only for strings. Void means no return value, not an int. You missed a brace. You missed semicolons. You called incorrect functions. I corrected your code above, but all the code really did for me is show that you did not read the manual very carefully... URL: https://forum.audiogames.net/post/570411/#p570411 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. #include"sound_pool.bgt";void main(){sound_pool p;string ver="0.0 beta";show_game_window("test attacking game v"+ver);int creaturehp=100;while(true){wait(5);if(key_pressed(KEY_SPACE)){p.play_stationary("sounds/hit.ogg", false);creaturehp--;if(creaturehp==0){p.play_stationary("sounds/end.ogg", false);exit();Havent tested it but it should work. Sounds must be in the sounds directory, as i assumed you wanted to be like that by setting sound storage, which you shouldn't actually do. Not your case. URL: https://forum.audiogames.net/post/570409/#p570409 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. One more curly brace at the end of file. URL: https://forum.audiogames.net/post/570406/#p570406 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. what is it?send me that file. URL: https://forum.audiogames.net/post/570393/#p570393 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: my test bgt game dont work.
Re: my test bgt game dont work. use the machher .bgt you are missing a brace or something. URL: https://forum.audiogames.net/post/570385/#p570385 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector