Re: bgt functions for sharing
2015-07-14
Thread
AudioGames . net Forum — Developers room : brian . kurosawa via Audiogames-reflector
Re: bgt functions for sharing Private works on bgt too. Can be usefull on some things. URL: http://forum.audiogames.net/viewtopic.php?pid=224139#p224139 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: bgt functions for sharing
Re: bgt functions for sharing sound_is_playing is in the documentation. And I never knew this, fuck. Wasnt there a key code to string function or something? URL: http://forum.audiogames.net/viewtopic.php?pid=222304#p222304 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: bgt functions for sharing
2015-07-01
Thread
AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector
Re: bgt functions for sharing Hi,I dont have the function you wanted Colton, but I do have some misc stuff I can put here:First is a set of speech functions. All thats there is a function to autodetect a screen reader and a speak function which has 2 peramitors, the text you want the voice to speak and weather it will interrupt by default this is true.The speak function uses the function to autoselect a screen reader.https://dl.dropboxusercontent.com/u/24767067/speech.bgtSecond, is a little class I created called parsed data. Basicly this flass can parse a file or string containing such text as, for example:name=personage=21Or something like that. The constructer takes 3 peramitors. A string of data, a string that is the encryption key, and a Boolean which states weather the name is a filename or actual data. Please note the encryption key is used with string decrypt, not file_decrypt.https://dl.dropboxusercontent.com/u/247 … d_data.bgt URL: http://forum.audiogames.net/viewtopic.php?pid=35#p35 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
bgt functions for sharing
bgt functions for sharing hi all.I was wondering if we could share a few functions in our code, either voluntarily or somebody asks and somebody else says heres a function.I didnt want to create a new thread for every function I wanted, or the same for others, so I put this up.The function Im looking for, Im pretty sure cae will be able to answer this one.I need a hex_to_decimal function.I, of course, can not use hex_to_string because it returns binary strings, not decimal digits.Say, e do this.string thing=number_to_hex_string(1372); //returns 55C.//I did that calculation before, I dont actually know hexadecimal.now, I cant exactly do this one.string thing2=hex_to_string(thing);i wanted 1372, and I dont get that. Does anybody have like an include or something that will convert hexadecimal to decimal? Prefferably returning a double. And if you make this, keep the following things in mine.One: H exadecimal doesnt support subdigits, i.e, 3.14, would come out as 0x03.Two: I do not believe hexadecimal supports negative numbers.Or maybe these are bgt limitations.So, can anybody give me one of those? Also, any functions you need just post here and somebody should return you one! URL: http://forum.audiogames.net/viewtopic.php?pid=24#p24 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: bgt functions for sharing
Re: bgt functions for sharing heeheehee, I wonder what other functions philip forgot to mension lol. URL: http://forum.audiogames.net/viewtopic.php?pid=47#p47 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: bgt functions for sharing
2015-07-01
Thread
AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector
Re: bgt functions for sharing Well, I know he forgot to mension this thing:condission ? true : falseBasicly, the condission part is something youd put in a regular if statement, like gender==1 or something, and then theres a question mark, followed by the thing to do if that condission is true, example male, and then a colan followed by the thing to do if its false, for example female. So you could do something like The player +player.name+ is a +player.gender==1 ? male : female URL: http://forum.audiogames.net/viewtopic.php?pid=58#p58 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: bgt functions for sharing
Re: bgt functions for sharing Hello,That feature is already built in to the engine. I talked Philip in to adding it a couple years ago. Its called hex_string_to_number(int) but it might not be in the documentation. URL: http://forum.audiogames.net/viewtopic.php?pid=34#p34 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: bgt functions for sharing
Re: bgt functions for sharing Well, as for undocumented features of angelscript, theres also class casting:@a=castb(c);Where c is an instance of a parent class of b. Results in null if c is not an instance of b.I dont think sound_is_playing in the sound_pool was documented. I think its supposed to be used internally, so you should use sound_is_active instead... except I think this was before the persistent parameter was added, so sound_is_playing is actually useful. URL: http://forum.audiogames.net/viewtopic.php?pid=86#p86 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector