Re: redfox's bgt questions?

2018-11-28 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector


  


Re: redfox's bgt questions?

get matcher.bgt from oriol gomez.com it is very useful for checking missing quotes, brackets, and parentheses

URL: http://forum.audiogames.net/post/395712/#p395712




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-24 Thread AudioGames . net Forum — Developers room : lukas via Audiogames-reflector


  


Re: redfox's bgt questions?

Oh, my god. This thread is becoming so confused and convoluted already, with contradicting replies and whatnot. Some of the advice you've been given shouldn't even be considered in the first place.Why don't you just give up on the idea of learning from someone else's messy source? The way I did it, which is slower and more time-consuming but also more rewarding in the end, was to start on my own, one very small, tiny step at a time, testing every little change and first of all trying to figure out why something isn't working on my own.Lukas

URL: http://forum.audiogames.net/post/394867/#p394867




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: redfox's bgt questions?

as i said, check all your if statements. make sure they have all there ( ) { } "" signs.

URL: http://forum.audiogames.net/post/394819/#p394819




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

litterally the only thing i changed was the grave wping thing, plus adding int wping; somewhere near the top with the huge list of ints that the source has

URL: http://forum.audiogames.net/post/394814/#p394814




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: redfox's bgt questions?

Non-terminated string literals are a pain to find, because it means a mismatched quote somewhere. Without a tool to find a line with an odd number of quotes, you'd just have to ctrl + f " and check all of them manually. If you can narrow down where it might be based on what you've changed since it last compiled, that'd save some trouble.

URL: http://forum.audiogames.net/post/394797/#p394797




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

cause it's what's used in the source, and there's a lot of it so i'm not going threw and changing it, and also because some of the sound i don't want to play at the char's position, like bullets hitting a wall

URL: http://forum.audiogames.net/post/394754/#p394754




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: redfox's bgt questions?

hi, check your key presses. they should have all the required signs.and if i might ask, why not just use the stationary method of the sound_pool instead of using the 2d method? it just waists so much time.p.play_stationary("pingon.ogg",false);and the same with pingoff.ogg

URL: http://forum.audiogames.net/post/394743/#p394743




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

alright, wen pasting this in it gives a vvary peculiar error, and i'll let yall know that I'm using Mason's Zombie Arena, just to learn, for this, so maybe that'll help something:On line: 367 (20)Line: alert("devices list",dev);Error: Non-terminated string literal, any idea what this means?in void main it calls checkcard();and the void checkcard() is right herevoid checkcard()
{
if (COMMAND_LINE!="")
{
if (COMMAND_LINE=="gl")
{
string[] devices=list_sound_devices();
string dev;
for (uint i=0; i0)
{
open_sound_device(cl);
}
}
}thanks in advance?

URL: http://forum.audiogames.net/post/394734/#p394734




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: redfox's bgt questions?

Not quite. As you have it now, it will turn it off again the next time your key-checking runs, which is probably like 5-20ms later. What you want is more like:if(key_pressed(KEY_GRAVE)) {
 if(wping<=0;
{
speak("wping on!");
p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false");
wping==1;
}
else
{
speak("wping off!");
p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);
wping==0;
}
}There is another error in there that I noticed. I just copied and edited the code in your post, so that error is still in this example. It's in there twice. No matter what you set wping to initially, this will prevent it from changing. I wouldn't have noticed it if I didn't scroll too far when adding the closing brace.[edit] Ah, Merin beat me to it. It looks like Merin did it the same way I did, though, so the error is still in that version, too.[/edit]

URL: http://forum.audiogames.net/post/394727/#p394727




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: redfox's bgt questions?

Not quite. As you have it now, it will turn it off again the next time your key-checking runs, which is probably like 5-20ms later. What you want is more like:if(key_pressed(KEY_GRAVE)) {
 if(wping<=0;
{
speak("wping on!");
p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false");
wping==1;
}
else
{
speak("wping off!");
p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);
wping==0;
}
}There is another error in there that I noticed. I just copied and edited the code in your post, so that error is still in this example. It's in there twice. No matter what you set wping to initially, this will prevent it from changing. I wouldn't have noticed it if I didn't scroll too far when adding the closing brace.

URL: http://forum.audiogames.net/post/394727/#p394727




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : Merin via Audiogames-reflector


  


Re: redfox's bgt questions?

if(key_pressed(KEY_GRAVE){if(wping = 0){speak("wping on!");p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false");wping==1;}else{speak("wping off!");p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);wping==0;}}

URL: http://forum.audiogames.net/post/394725/#p394725




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

@12, I'm working on python, but I'm doing this as a side thing.so like this?if(key_pressed(KEY_GRAVE) and wping<=0;
{
speak("wping on!");
p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false");
wping==1;
}
else
{
speak("wping off!");
p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);
wping==0;
}like that?

URL: http://forum.audiogames.net/post/394724/#p394724




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

@12, I'm working on python, but I'm doing this as a side thing.so like this?if(key_pressed(KEY_GRAVE) and wping<=0;
{
speak("wping on!");
p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false");
wping==1;
}
else
{
speak("wping off!");
p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y");
wping==0;
}like that?

URL: http://forum.audiogames.net/post/394724/#p394724




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : zenothrax via Audiogames-reflector


  


Re: redfox's bgt questions?

Here's a piece of advice fox. Don't use BGT. Python is much easier to use and there are quite a few good libraries for it. The ones you'll need are accessible_output and sound_lib, and maybe keyboard_handler and game_utils to make things easier.Peace out.

URL: http://forum.audiogames.net/post/394717/#p394717




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: redfox's bgt questions?

like if(key_pressed(KEY_`) <=0){code}else{code}that should work

URL: http://forum.audiogames.net/post/394712/#p394712




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-23 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: redfox's bgt questions?

To abstract it a bit, what you have now is like:if (a and b) c;if (a and d) e;What you want instead is:if (a) {  if (b) c;  else if (d) e;}Since both of your ifs start with the same condition, you can just make one if for that, then do the rest inside. The else just tells it to only do if (d) in the case where if (b) failed. Since you only want one of two options, this guarantees you only get one, and never both.

URL: http://forum.audiogames.net/post/394687/#p394687




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-22 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

could you give some examples of how I would do it? I'll look at the else thingm but if I can't figure it out then hmmm

URL: http://forum.audiogames.net/post/394643/#p394643




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-22 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: redfox's bgt questions?

6: Key_pressed only works once per press. What you should do is have one if for the key press, then decide what to do with the ping inside that. Also, this is where you'd want to use else, since if you only move the key_pressed, you'll always get it turning on and off at the same time.I think there's a way you could make it work as-is, by swapping the conditions in the ifs so that key_pressed is checked after the status of the ping, but that feels like cheating.7: the forum recognizes brackets as BB code. You can get around this by puting [code] before your code, and [/code] afterward.

URL: http://forum.audiogames.net/post/394536/#p394536




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-21 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

hi! i have more problems, but the forum doesn't like it wen I paiste bgt code into it, so i've put it into a text file, witch can be found here. thanks in advance!

URL: http://forum.audiogames.net/post/394515/#p394515




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-21 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


Re: redfox's bgt questions?

hi, what's the problem with this code? I'm trying to get it to do what redspot does with the weapon ping, like, if wping is off, in this case 0, it would turn on and go back to one wen i hit grave, It's only turning it on though, am I missing something, o, and obviously, this isn't the whole script, the actual script is too big and most of it doesn't have anything to do with this, so, thanks in advance?if (key_pressed(KEY_GRAVE) and wping<=0){speak("weapon ping on!");p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false);wping=1;}if (key_pressed(KEY_GRAVE) and wping>=1){speak("weapon ping off!");p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);wping=0;}

URL: http://forum.audiogames.net/post/394506/#p394506




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-09 Thread AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector


  


Re: redfox's bgt questions?

I think you should learn the manual so you can understand the answers we give you. Do you even know how to use dictionaries or know what the string_to_number function does?

URL: http://forum.audiogames.net/post/392267/#p392267




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: redfox's bgt questions?

2018-11-07 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector


  


Re: redfox's bgt questions?

Pausing really depends on how your game is set up. The simplest way would be to make a pause function with a while loop that lasts until the player unpauses.The way I'd rather do it is with a variable that tracks what part of the system the program is in—what screen it's on, if you'd prefer. In that case, I make an enum with all the different screens, and use a switch or if-else chain in the game's input and update functions to handle each. For pausing and unpausing, I'd also pause / resume sounds (if you're using the sound_pool, just use the pause_all and resume_all methods).Either solution runs into  problems if you're using timers. I avoid this problem with a frame-clock, so you only need one while-loop, and know that every frame is the same length, excepting heavy lag.As for saving the music volume, my solution is to either put it in a settings dictionary that gets saved/loaded on start / exit, or to use a settings menu(s) and save/load it via for-loop and string_to_number. The dictionary is probably easiest, since you don't have to worry about converting everything to and from text yourself, and can use the serialize and deserialize functions instead.

URL: http://forum.audiogames.net/post/391675/#p391675




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


redfox's bgt questions?

2018-11-07 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector


  


redfox's bgt questions?

this topic will be for bgt questions i have, as they come up. So, first question!How would I implement a pause menu in the middle of the round, and then when I hit p again, or click the resume game, it picks up where I left off? Would this require seeing the source?also, How would I save the music volume, cause I want to be able to change it? I think I would use something like, if(KEY_PRESSED)(KEY_Pagedown) {music.volume-10}

URL: http://forum.audiogames.net/post/391666/#p391666




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector